diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-10-20 18:03:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-20 18:03:32 (GMT) |
commit | ea7c26e4b89c71234c4a603567a93f0a44c9cc97 (patch) | |
tree | 4b16ca180cf06bfb63cd7e7a30ad940fb3e182fb /Lib/test/test_typing.py | |
parent | f1e751e933aa8c39c0e9cfa4cdc3f8f9f0538202 (diff) | |
download | cpython-ea7c26e4b89c71234c4a603567a93f0a44c9cc97.zip cpython-ea7c26e4b89c71234c4a603567a93f0a44c9cc97.tar.gz cpython-ea7c26e4b89c71234c4a603567a93f0a44c9cc97.tar.bz2 |
gh-111126: Use `isinstance` instead of `assert[Not]IsInstance` in `test_typing` (#111127)
Diffstat (limited to 'Lib/test/test_typing.py')
-rw-r--r-- | Lib/test/test_typing.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 1a1e0a25..7f60bf4 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -2011,13 +2011,13 @@ class BaseCallableTests: def f(): pass with self.assertRaises(TypeError): - self.assertIsInstance(f, Callable[[], None]) + isinstance(f, Callable[[], None]) with self.assertRaises(TypeError): - self.assertIsInstance(f, Callable[[], Any]) + isinstance(f, Callable[[], Any]) with self.assertRaises(TypeError): - self.assertNotIsInstance(None, Callable[[], None]) + isinstance(None, Callable[[], None]) with self.assertRaises(TypeError): - self.assertNotIsInstance(None, Callable[[], Any]) + isinstance(None, Callable[[], Any]) def test_repr(self): Callable = self.Callable |