mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Mark erroring tests
This commit is contained in:
2 files changed
+30
No files matched your search
Vendored
+22
@@ -16,6 +16,8 @@ class NetrcTestCase(unittest.TestCase):
|
||||
self.addCleanup(os.unlink, temp_filename)
|
||||
return netrc.netrc(temp_filename)
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_default(self):
|
||||
nrc = self.make_nrc("""\
|
||||
machine host1.domain.com login log1 password pass1 account acct1
|
||||
@@ -28,6 +30,8 @@ class NetrcTestCase(unittest.TestCase):
|
||||
nrc2 = self.make_nrc(nrc.__repr__())
|
||||
self.assertEqual(nrc.hosts, nrc2.hosts)
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_macros(self):
|
||||
nrc = self.make_nrc("""\
|
||||
macdef macro1
|
||||
@@ -45,16 +49,22 @@ class NetrcTestCase(unittest.TestCase):
|
||||
nrc = self.make_nrc(nrc)
|
||||
self.assertEqual(nrc.hosts['host.domain.com'], ('log', 'acct', passwd))
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_password_with_leading_hash(self):
|
||||
self._test_passwords("""\
|
||||
machine host.domain.com login log password #pass account acct
|
||||
""", '#pass')
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_password_with_trailing_hash(self):
|
||||
self._test_passwords("""\
|
||||
machine host.domain.com login log password pass# account acct
|
||||
""", 'pass#')
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_password_with_internal_hash(self):
|
||||
self._test_passwords("""\
|
||||
machine host.domain.com login log password pa#ss account acct
|
||||
@@ -65,6 +75,8 @@ class NetrcTestCase(unittest.TestCase):
|
||||
self.assertEqual(nrc.hosts['foo.domain.com'], ('bar', None, passwd))
|
||||
self.assertEqual(nrc.hosts['bar.domain.com'], ('foo', None, 'pass'))
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_comment_before_machine_line(self):
|
||||
self._test_comment("""\
|
||||
# comment
|
||||
@@ -72,6 +84,8 @@ class NetrcTestCase(unittest.TestCase):
|
||||
machine bar.domain.com login foo password pass
|
||||
""")
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_comment_before_machine_line_no_space(self):
|
||||
self._test_comment("""\
|
||||
#comment
|
||||
@@ -79,6 +93,8 @@ class NetrcTestCase(unittest.TestCase):
|
||||
machine bar.domain.com login foo password pass
|
||||
""")
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_comment_before_machine_line_hash_only(self):
|
||||
self._test_comment("""\
|
||||
#
|
||||
@@ -86,18 +102,24 @@ class NetrcTestCase(unittest.TestCase):
|
||||
machine bar.domain.com login foo password pass
|
||||
""")
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_comment_at_end_of_machine_line(self):
|
||||
self._test_comment("""\
|
||||
machine foo.domain.com login bar password pass # comment
|
||||
machine bar.domain.com login foo password pass
|
||||
""")
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_comment_at_end_of_machine_line_no_space(self):
|
||||
self._test_comment("""\
|
||||
machine foo.domain.com login bar password pass #comment
|
||||
machine bar.domain.com login foo password pass
|
||||
""")
|
||||
|
||||
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
|
||||
@unittest.expectedFailure
|
||||
def test_comment_at_end_of_machine_line_pass_has_hash(self):
|
||||
self._test_comment("""\
|
||||
machine foo.domain.com login bar password #pass #comment
|
||||
|
||||
Vendored
+8
@@ -413,6 +413,8 @@ class SysModuleTest(unittest.TestCase):
|
||||
leave_g.set()
|
||||
t.join()
|
||||
|
||||
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute '_current_exceptions'
|
||||
@unittest.expectedFailure
|
||||
@threading_helper.reap_threads
|
||||
def test_current_exceptions(self):
|
||||
import threading
|
||||
@@ -480,6 +482,8 @@ class SysModuleTest(unittest.TestCase):
|
||||
leave_g.set()
|
||||
t.join()
|
||||
|
||||
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'orig_argv'
|
||||
@unittest.expectedFailure
|
||||
def test_attributes(self):
|
||||
self.assertIsInstance(sys.api_version, int)
|
||||
self.assertIsInstance(sys.argv, list)
|
||||
@@ -1000,6 +1004,8 @@ class SysModuleTest(unittest.TestCase):
|
||||
out = out.decode('ascii', 'replace').rstrip()
|
||||
self.assertEqual(out, 'mbcs replace')
|
||||
|
||||
# TODO: RUSTPYTHON, subprocess.CalledProcessError: Command ... returned non-zero exit status 1.
|
||||
@unittest.expectedFailure
|
||||
def test_orig_argv(self):
|
||||
code = textwrap.dedent('''
|
||||
import sys
|
||||
@@ -1015,6 +1021,8 @@ class SysModuleTest(unittest.TestCase):
|
||||
self.assertEqual(proc.stdout.rstrip().splitlines(), expected,
|
||||
proc)
|
||||
|
||||
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'stdlib_module_names'
|
||||
@unittest.expectedFailure
|
||||
def test_module_names(self):
|
||||
self.assertIsInstance(sys.stdlib_module_names, frozenset)
|
||||
for name in sys.stdlib_module_names:
|
||||
|
||||
Reference in new issue
Block a user