From 44d08b67376ab94ae66fa59d364bba806aac08b8 Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Thu, 23 Sep 2021 03:15:26 -0700 Subject: [PATCH] fix issue with test failing due to hash builtin changing in python 3.8 --- setup.py | 2 +- test/test_path.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 3375d4c..6b2d7a8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import codecs import os -VERSION = '1.4.1' +VERSION = '1.4.2' AUTHOR_NAME = 'Andy Port' AUTHOR_EMAIL = 'AndyAPort@gmail.com' GITHUB = 'https://github.com/mathandy/svgpathtools' diff --git a/test/test_path.py b/test/test_path.py index 94462be..e914224 100644 --- a/test/test_path.py +++ b/test/test_path.py @@ -741,7 +741,7 @@ class TestPath(unittest.TestCase): apath, line1, arc1, arc2, cub1, cub2, quad3, linez] # this is necessary due to changes to the builtin `hash` function - if sys.version_info.major == 2: + if sys.version_info.major + sys.version_info.minor < 3.8: expected_hashes = [ -5762846476463470127, -138736730317965290, -2005041722222729058, 8448700906794235291, -5178990533869800243, -4003140762934044601,