Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df7f8c0

Browse files
committed
refactor to skip codecov
1 parent c32dcc8 commit df7f8c0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,10 +1200,8 @@ def is_interactive():
12001200
def _init_tests():
12011201
# The version of FreeType to install locally for running the
12021202
# tests. This must match the value in `setupext.py`
1203-
if sys.platform.startswith('win') and platform.machine() == 'ARM64':
1204-
LOCAL_FREETYPE_VERSION = '2.11.1'
1205-
else:
1206-
LOCAL_FREETYPE_VERSION = '2.6.1'
1203+
win_arm64 = sys.platform.startswith('win') and platform.machine() == 'ARM64'
1204+
LOCAL_FREETYPE_VERSION = '2.11.1' if win_arm64 else '2.6.1'
12071205

12081206
from matplotlib import ft2font
12091207
if (ft2font.__freetype_version__ != LOCAL_FREETYPE_VERSION or

0 commit comments

Comments
 (0)