summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-18 21:48:48 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-19 20:32:26 +0200
commitba7f62941bf3742a6a2ce94637c18d117c1d6115 (patch)
tree677d9b23a7031821ea485650d5a663911779d4ad
parent6c83c3de66832a0273ac9af0ddcf5bf3a0cb7499 (diff)
downloadastroid-git-ba7f62941bf3742a6a2ce94637c18d117c1d6115.tar.gz
Fix Unused variable 'ex'
-rw-r--r--tests/unittest_scoped_nodes.py4
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):