Skip to content

Commit 4db955e

Browse files
committed
Fixup for tests.
1 parent 9a0c87f commit 4db955e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

typed_python/type_identity_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,21 +667,21 @@ def test_dot_accesses():
667667
def f():
668668
return typed_python._types
669669

670-
assert getCodeGlobalDotAccesses(f.__code__) == [['typed_python', '_types']]
670+
assert getCodeGlobalDotAccesses(f.__code__) == [['__module_hash__'], ['typed_python', '_types']]
671671

672672
def f2():
673673
typed_python
674674
return typed_python._types
675675

676-
assert getCodeGlobalDotAccesses(f2.__code__) == [['typed_python'], ['typed_python', '_types']]
676+
assert getCodeGlobalDotAccesses(f2.__code__) == [['__module_hash__'], ['typed_python'], ['typed_python', '_types']]
677677

678678
def f3():
679679
return typed_python.f()
680680

681681
import dis
682682
dis.dis(f3)
683683

684-
assert getCodeGlobalDotAccesses(f3.__code__) == [['typed_python', 'f']]
684+
assert getCodeGlobalDotAccesses(f3.__code__) == [['__module_hash__'], ['typed_python', 'f']]
685685

686686

687687
def test_identity_of_entrypointed_functions():

0 commit comments

Comments
 (0)