From b70eb8989a7cd4db95f37114b62ade57d3e54a67 Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Wed, 27 Apr 2022 19:11:02 -0400 Subject: [PATCH] Mark erroring tests --- Lib/test/test_netrc.py | 22 ++++++++++++++++++++++ Lib/test/test_sys.py | 8 ++++++++ 2 files changed, 30 insertions(+) diff --git a/Lib/test/test_netrc.py b/Lib/test/test_netrc.py index 27091c589..4f199ebf0 100644 --- a/Lib/test/test_netrc.py +++ b/Lib/test/test_netrc.py @@ -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 diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index c2254601e..7f923e7b2 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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: