mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update straightforward packages Pt 1 (#6595)
* Deleted _pycodecs.py * Updated code.py library * Updated the _pydatetime.py lib * Removed distutils package * Updated doctest package * * Updated datetimetester.py * Added back in _pycodecs.py * Used tool to verify datetimetester + test_code_module
This commit is contained in:
1 parent
6bf1ab65c0
commit
e22091ef60
57 files changed
+634
-17112
No files matched your search
Vendored
+6
-2
@@ -64,6 +64,7 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
|
||||
raise AssertionError("no console stdout")
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
# AssertionError: Lists differ: [' F[27 chars] x = ?', ' ^', 'SyntaxError: got unexpected token ?'] != [' F[27 chars] x = ?', ' ^', 'SyntaxError: invalid syntax']
|
||||
@unittest.expectedFailure
|
||||
def test_syntax_error(self):
|
||||
self.infunc.side_effect = ["def f():",
|
||||
@@ -86,6 +87,7 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
|
||||
self.assertIs(self.sysmod.last_exc, self.sysmod.last_value)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
# AssertionError: Lists differ: [' F[15 chars], line 1', ' 1', 'IndentationError: unexpected indentation'] != [' F[15 chars], line 1', ' 1', 'IndentationError: unexpected indent']
|
||||
@unittest.expectedFailure
|
||||
def test_indentation_error(self):
|
||||
self.infunc.side_effect = [" 1", EOFError('Finished')]
|
||||
@@ -104,6 +106,7 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
|
||||
self.assertIs(self.sysmod.last_exc, self.sysmod.last_value)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
# AssertionError: False is not true : UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 1
|
||||
@unittest.expectedFailure
|
||||
def test_unicode_error(self):
|
||||
self.infunc.side_effect = ["'\ud800'", EOFError('Finished')]
|
||||
@@ -142,6 +145,7 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
|
||||
'ValueError: BOOM!\n'])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
# AssertionError: Lists differ: [' F[35 chars]= ?\n', ' ^\n', 'SyntaxError: got unexpected token ?\n'] != [' F[35 chars]= ?\n', ' ^\n', 'SyntaxError: invalid syntax\n']
|
||||
@unittest.expectedFailure
|
||||
def test_sysexcepthook_syntax_error(self):
|
||||
self.infunc.side_effect = ["def f():",
|
||||
@@ -167,6 +171,7 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
|
||||
'SyntaxError: invalid syntax\n'])
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
# AssertionError: Lists differ: [' F[21 chars] 1\n', ' 1\n', 'IndentationError: unexpected indentation\n'] != [' F[21 chars] 1\n', ' 1\n', 'IndentationError: unexpected indent\n']
|
||||
@unittest.expectedFailure
|
||||
def test_sysexcepthook_indentation_error(self):
|
||||
self.infunc.side_effect = [" 1", EOFError('Finished')]
|
||||
@@ -262,8 +267,7 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
|
||||
self.assertEqual(err_msg, ['write', (expected,), {}])
|
||||
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
@unittest.expectedFailure # TODO: RUSTPYTHON
|
||||
def test_cause_tb(self):
|
||||
self.infunc.side_effect = ["raise ValueError('') from AttributeError",
|
||||
EOFError('Finished')]
|
||||
|
||||
Reference in new issue
Block a user