File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed
typinganndata/partialexecution Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class D(metaclass=C):
110110 self .assertEqual (D .__annotations__ , {})
111111
112112 def test_partially_executed_module (self ):
113- partialexe = import_helper .import_module ("test.typinganndata.partialexecution" )
113+ partialexe = import_helper .import_fresh_module ("test.typinganndata.partialexecution" )
114114 self .assertEqual (
115115 partialexe .a .__annotations__ ,
116116 {"v1" : int , "v2" : int },
Original file line number Diff line number Diff line change 1+ from . import a
Original file line number Diff line number Diff line change 1+ v1 : int
2+
3+ from . import b
4+
5+ v2 : int
Original file line number Diff line number Diff line change 1+ from . import a
2+
3+ try :
4+ a .__annotations__
5+ except Exception as e :
6+ exc = e
7+ else :
8+ exc = None
You can’t perform that action at this time.
0 commit comments