File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6004,16 +6004,17 @@ def test_mutablesequence(self):
6004
6004
self .assertNotIsInstance ((), typing .MutableSequence )
6005
6005
6006
6006
def test_bytestring (self ):
6007
+ _typing = import_fresh_module ('typing' )
6007
6008
with self .assertWarns (DeprecationWarning ):
6008
- from typing import ByteString
6009
+ ByteString = _typing . ByteString
6009
6010
with self .assertWarns (DeprecationWarning ):
6010
6011
self .assertIsInstance (b'' , ByteString )
6011
6012
with self .assertWarns (DeprecationWarning ):
6012
6013
self .assertIsInstance (bytearray (b'' ), ByteString )
6013
6014
with self .assertWarns (DeprecationWarning ):
6014
6015
class Foo (ByteString ): ...
6015
6016
with self .assertWarns (DeprecationWarning ):
6016
- class Bar (ByteString , typing .Awaitable ): ...
6017
+ class Bar (ByteString , _typing .Awaitable ): ...
6017
6018
6018
6019
def test_list (self ):
6019
6020
self .assertIsSubclass (list , typing .List )
You can’t perform that action at this time.
0 commit comments