Skip to content

Commit fbb1adb

Browse files
committed
fixing the failing tests
1 parent e352ed8 commit fbb1adb

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_cache.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ def test_cache_deeply_nested_a2(self, nested_a_t1, nested_a_t2, nested_a_result)
4040
stats = diff.get_stats()
4141
# Somehow just in python 3.5 the cache stats are different. Weird.
4242
expected_stats = {
43-
'PASSES COUNT': 3960,
44-
'DIFF COUNT': 19469,
45-
'DISTANCE CACHE HIT COUNT': 11847,
46-
'MAX PASS LIMIT REACHED': False,
47-
'MAX DIFF LIMIT REACHED': False
43+
"PASSES COUNT": 5324,
44+
"DIFF COUNT": 28020,
45+
"DISTANCE CACHE HIT COUNT": 17243,
46+
"MAX PASS LIMIT REACHED": False,
47+
"MAX DIFF LIMIT REACHED": False,
4848
}
4949
assert not DeepDiff(expected_stats, stats, use_log_scale=True)
5050
assert nested_a_result == diff

tests/test_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ def sig_to_bytes(inp: Dict[str, Union[str, bytes]]):
542542
(4, Decimal(2017.1), None),
543543
(5, {1, 2, 10}, set),
544544
(6, datetime.datetime(2023, 10, 11), datetime.datetime.fromisoformat),
545-
(7, datetime.datetime.utcnow(), datetime.datetime.fromisoformat),
545+
(7, datetime.datetime.now(datetime.UTC), datetime.datetime.fromisoformat),
546546
(8, field_stats1, lambda x: SomeStats(**x)),
547547
(9, np.array([[ 101, 3533, 1998, 4532, 2024, 3415, 1012, 102]]), np.array),
548548
(10, memoryview(b"hello"), lambda x: memoryview(x.encode('utf-8'))),

0 commit comments

Comments
 (0)