From ac82d2609ad5e32540b935914a5aa0209ac573f8 Mon Sep 17 00:00:00 2001 From: nulano Date: Sun, 2 Oct 2022 08:00:03 +0200 Subject: [PATCH] print features, disable heap verification --- .github/workflows/test-windows.yml | 6 ------ comparison.py | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index cbc22c25fff..9534ed8aa21 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -138,12 +138,6 @@ jobs: & $env:pythonLocation\python.exe selftest.py --installed shell: pwsh - # skip PyPy for speed - - name: Enable heap verification - if: "!contains(matrix.python-version, 'pypy')" - run: | - & reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\python.exe" /v "GlobalFlag" /t REG_SZ /d "0x02000000" /f - - name: Test Pillow run: | path %GITHUB_WORKSPACE%\\winbuild\\build\\bin;%PATH% diff --git a/comparison.py b/comparison.py index b8007cb90aa..493ce5a8ccc 100644 --- a/comparison.py +++ b/comparison.py @@ -1,6 +1,11 @@ import time + +from PIL import features + start = time.time() i = 0 while i < 100000000: i += 1 print("Comparison:", time.time() - start) + +features.pilinfo(supported_formats=False)