fix issue with test failing due to hash builtin changing in python 3.8

pull/158/head
Andrew Port 2021-09-23 03:15:26 -07:00
parent 60984969a7
commit 44d08b6737
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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,