File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9303,10 +9303,12 @@ def test_sentinel_copy(self):
93039303 self .assertIs (self .SENTINEL , copy .deepcopy (self .SENTINEL ))
93049304
93059305 def test_sentinel_import (self ):
9306- self .assertIs (Sentinel . _import_sentinel ("TestSentinels" , __name__ ), TestSentinels )
9306+ self .assertIs (Sentinel ("TestSentinels" ), TestSentinels )
93079307 self .assertIs (Sentinel ._import_sentinel ("TestSentinels.SENTINEL" , __name__ ), TestSentinels .SENTINEL )
93089308 self .assertIs (Sentinel ._import_sentinel ("nonexistent" , __name__ ), None )
93099309 self .assertIs (Sentinel ._import_sentinel ("TestSentinels.nonexistent" , __name__ ), None )
9310+ self .assertIs (Sentinel ._import_sentinel ("nonexistent" , "" ), None )
9311+ self .assertIs (Sentinel ._import_sentinel ("nonexistent" , "nonexistent.nonexistent.nonexistent" ), None )
93109312
93119313 def test_sentinel_picklable (self ):
93129314 for proto in range (pickle .HIGHEST_PROTOCOL + 1 ):
You can’t perform that action at this time.
0 commit comments