Skip to content

Commit 51c4711

Browse files
committed
fixing hash test
1 parent d78f8df commit 51c4711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_hash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from deepdiff.deephash import (
1111
prepare_string_for_hashing, unprocessed,
1212
UNPROCESSED_KEY, BoolObj, HASH_LOOKUP_ERR_MSG, combine_hashes_lists)
13-
from deepdiff.helper import pypy3, get_id, number_to_string, np, py_current_version
13+
from deepdiff.helper import pypy3, get_id, number_to_string, np, py_major_version, py_minor_version
1414
from tests import CustomClass2
1515

1616
logging.disable(logging.CRITICAL)
@@ -267,7 +267,7 @@ class MyEnum(Enum):
267267
A = 1
268268
B = 2
269269

270-
if py_current_version >= 3.11:
270+
if (py_major_version, py_minor_version) >= (3, 11):
271271
assert DeepHashPrep(MyEnum.A)[MyEnum.A] == r'objMyEnum:{str:_name_:str:A;str:_sort_order_:int:0;str:_value_:int:1}'
272272
else:
273273
assert DeepHashPrep(MyEnum.A)[MyEnum.A] == r'objMyEnum:{str:_name_:str:A;str:_value_:int:1}'

0 commit comments

Comments
 (0)