Skip to content

Commit b70eb89

Browse files
committed
Mark erroring tests
1 parent 1d25731 commit b70eb89

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

Lib/test/test_netrc.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def make_nrc(self, test_data):
1616
self.addCleanup(os.unlink, temp_filename)
1717
return netrc.netrc(temp_filename)
1818

19+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
20+
@unittest.expectedFailure
1921
def test_default(self):
2022
nrc = self.make_nrc("""\
2123
machine host1.domain.com login log1 password pass1 account acct1
@@ -28,6 +30,8 @@ def test_default(self):
2830
nrc2 = self.make_nrc(nrc.__repr__())
2931
self.assertEqual(nrc.hosts, nrc2.hosts)
3032

33+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
34+
@unittest.expectedFailure
3135
def test_macros(self):
3236
nrc = self.make_nrc("""\
3337
macdef macro1
@@ -45,16 +49,22 @@ def _test_passwords(self, nrc, passwd):
4549
nrc = self.make_nrc(nrc)
4650
self.assertEqual(nrc.hosts['host.domain.com'], ('log', 'acct', passwd))
4751

52+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
53+
@unittest.expectedFailure
4854
def test_password_with_leading_hash(self):
4955
self._test_passwords("""\
5056
machine host.domain.com login log password #pass account acct
5157
""", '#pass')
5258

59+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
60+
@unittest.expectedFailure
5361
def test_password_with_trailing_hash(self):
5462
self._test_passwords("""\
5563
machine host.domain.com login log password pass# account acct
5664
""", 'pass#')
5765

66+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
67+
@unittest.expectedFailure
5868
def test_password_with_internal_hash(self):
5969
self._test_passwords("""\
6070
machine host.domain.com login log password pa#ss account acct
@@ -65,39 +75,51 @@ def _test_comment(self, nrc, passwd='pass'):
6575
self.assertEqual(nrc.hosts['foo.domain.com'], ('bar', None, passwd))
6676
self.assertEqual(nrc.hosts['bar.domain.com'], ('foo', None, 'pass'))
6777

78+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
79+
@unittest.expectedFailure
6880
def test_comment_before_machine_line(self):
6981
self._test_comment("""\
7082
# comment
7183
machine foo.domain.com login bar password pass
7284
machine bar.domain.com login foo password pass
7385
""")
7486

87+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
88+
@unittest.expectedFailure
7589
def test_comment_before_machine_line_no_space(self):
7690
self._test_comment("""\
7791
#comment
7892
machine foo.domain.com login bar password pass
7993
machine bar.domain.com login foo password pass
8094
""")
8195

96+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
97+
@unittest.expectedFailure
8298
def test_comment_before_machine_line_hash_only(self):
8399
self._test_comment("""\
84100
#
85101
machine foo.domain.com login bar password pass
86102
machine bar.domain.com login foo password pass
87103
""")
88104

105+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
106+
@unittest.expectedFailure
89107
def test_comment_at_end_of_machine_line(self):
90108
self._test_comment("""\
91109
machine foo.domain.com login bar password pass # comment
92110
machine bar.domain.com login foo password pass
93111
""")
94112

113+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
114+
@unittest.expectedFailure
95115
def test_comment_at_end_of_machine_line_no_space(self):
96116
self._test_comment("""\
97117
machine foo.domain.com login bar password pass #comment
98118
machine bar.domain.com login foo password pass
99119
""")
100120

121+
# TODO: RUSTPYTHON, LookupError: unknown encoding: locale
122+
@unittest.expectedFailure
101123
def test_comment_at_end_of_machine_line_pass_has_hash(self):
102124
self._test_comment("""\
103125
machine foo.domain.com login bar password #pass #comment

Lib/test/test_sys.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ def g456():
413413
leave_g.set()
414414
t.join()
415415

416+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute '_current_exceptions'
417+
@unittest.expectedFailure
416418
@threading_helper.reap_threads
417419
def test_current_exceptions(self):
418420
import threading
@@ -480,6 +482,8 @@ def g456():
480482
leave_g.set()
481483
t.join()
482484

485+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'orig_argv'
486+
@unittest.expectedFailure
483487
def test_attributes(self):
484488
self.assertIsInstance(sys.api_version, int)
485489
self.assertIsInstance(sys.argv, list)
@@ -1000,6 +1004,8 @@ def test__enablelegacywindowsfsencoding(self):
10001004
out = out.decode('ascii', 'replace').rstrip()
10011005
self.assertEqual(out, 'mbcs replace')
10021006

1007+
# TODO: RUSTPYTHON, subprocess.CalledProcessError: Command ... returned non-zero exit status 1.
1008+
@unittest.expectedFailure
10031009
def test_orig_argv(self):
10041010
code = textwrap.dedent('''
10051011
import sys
@@ -1015,6 +1021,8 @@ def test_orig_argv(self):
10151021
self.assertEqual(proc.stdout.rstrip().splitlines(), expected,
10161022
proc)
10171023

1024+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'stdlib_module_names'
1025+
@unittest.expectedFailure
10181026
def test_module_names(self):
10191027
self.assertIsInstance(sys.stdlib_module_names, frozenset)
10201028
for name in sys.stdlib_module_names:

0 commit comments

Comments
 (0)