mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Un-skip passing typing test
I missed that the typing test I disabled was on a base test class. Moving the expected failure to the subclass allows the passing test to pass.
This commit is contained in:
1 parent
6cd9e54427
commit
407f251866
1 file changed
+5
-2
Vendored
+5
-2
@@ -513,8 +513,6 @@ class BaseCallableTests:
|
||||
with self.assertRaises(TypeError):
|
||||
self.assertNotIsInstance(None, Callable[[], Any])
|
||||
|
||||
# TODO: RUSTPYTHON update typing to 3.12
|
||||
@unittest.expectedFailure
|
||||
def test_repr(self):
|
||||
Callable = self.Callable
|
||||
fullname = f'{Callable.__module__}.Callable'
|
||||
@@ -707,6 +705,11 @@ class CollectionsCallableTests(BaseCallableTests, BaseTestCase):
|
||||
def test_concatenate(self): # TODO: RUSTPYTHON, remove when this passes
|
||||
super().test_concatenate() # TODO: RUSTPYTHON, remove when this passes
|
||||
|
||||
# TODO: RUSTPYTHON might be fixed by updating typing to 3.12
|
||||
@unittest.expectedFailure
|
||||
def test_repr(self): # TODO: RUSTPYTHON, remove when this passes
|
||||
super().test_repr() # TODO: RUSTPYTHON, remove when this passes
|
||||
|
||||
|
||||
class LiteralTests(BaseTestCase):
|
||||
def test_basics(self):
|
||||
|
||||
Reference in new issue
Block a user