diff options
author | Dong-hee Na <donghee.na@python.org> | 2021-08-23 10:01:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 10:01:51 (GMT) |
commit | 24b63c695ae0a95b06379eaadace66735abac1e2 (patch) | |
tree | 8bc8bbc38511c504860b494e125c232f51457638 /Lib/test/test_typing.py | |
parent | 6082bb5addab93755ab6e2bd2ed6021b391e10d1 (diff) | |
download | cpython-24b63c695ae0a95b06379eaadace66735abac1e2.zip cpython-24b63c695ae0a95b06379eaadace66735abac1e2.tar.gz cpython-24b63c695ae0a95b06379eaadace66735abac1e2.tar.bz2 |
bpo-24234: Implement bytes.__bytes__ (GH-27901)
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 84521ee..de4db51 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -1543,11 +1543,11 @@ class ProtocolTests(BaseTestCase): def test_supports_bytes(self): - # Note: bytes itself doesn't have __bytes__. class B: def __bytes__(self): return b'' + self.assertIsSubclass(bytes, typing.SupportsBytes) self.assertIsSubclass(B, typing.SupportsBytes) self.assertNotIsSubclass(str, typing.SupportsBytes) |