diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-18 21:48:48 +0200 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-04-19 20:32:26 +0200 |
| commit | ba7f62941bf3742a6a2ce94637c18d117c1d6115 (patch) | |
| tree | 677d9b23a7031821ea485650d5a663911779d4ad | |
| parent | 6c83c3de66832a0273ac9af0ddcf5bf3a0cb7499 (diff) | |
| download | astroid-git-ba7f62941bf3742a6a2ce94637c18d117c1d6115.tar.gz | |
Fix Unused variable 'ex'
| -rw-r--r-- | tests/unittest_scoped_nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittest_scoped_nodes.py b/tests/unittest_scoped_nodes.py index 7d44386c..d8855718 100644 --- a/tests/unittest_scoped_nodes.py +++ b/tests/unittest_scoped_nodes.py @@ -1561,7 +1561,7 @@ class ClassNodeTest(ModuleLoader, unittest.TestCase): class A(Generic[T1], Generic[T2]): ... """ ) - with self.assertRaises(DuplicateBasesError) as ex: + with self.assertRaises(DuplicateBasesError): cls.mro() @test_utils.require_version(minver="3.7") @@ -1574,7 +1574,7 @@ class ClassNodeTest(ModuleLoader, unittest.TestCase): class B(A[T], A[T]): ... """ ) - with self.assertRaises(DuplicateBasesError) as ex: + with self.assertRaises(DuplicateBasesError): cls.mro() def test_generator_from_infer_call_result_parent(self): |
