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):
9303
9303
self .assertIs (self .SENTINEL , copy .deepcopy (self .SENTINEL ))
9304
9304
9305
9305
def test_sentinel_import (self ):
9306
- self .assertIs (Sentinel . _import_sentinel ("TestSentinels" , __name__ ), TestSentinels )
9306
+ self .assertIs (Sentinel ("TestSentinels" ), TestSentinels )
9307
9307
self .assertIs (Sentinel ._import_sentinel ("TestSentinels.SENTINEL" , __name__ ), TestSentinels .SENTINEL )
9308
9308
self .assertIs (Sentinel ._import_sentinel ("nonexistent" , __name__ ), None )
9309
9309
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 )
9310
9312
9311
9313
def test_sentinel_picklable (self ):
9312
9314
for proto in range (pickle .HIGHEST_PROTOCOL + 1 ):
You can’t perform that action at this time.
0 commit comments