Skip to content

Commit ee9f6ae

Browse files
committed
Edit Lib/test/test_codeop.py
cpython version: 3.12
1 parent 488bac7 commit ee9f6ae

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎Lib/test/test_codeop.py‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def assertInvalid(self, str, symbol='single', is_syntax=1):
3030
except OverflowError:
3131
self.assertTrue(not is_syntax)
3232

33+
# TODO: RUSTPYTHON
34+
@unittest.expectedFailure
3335
def test_valid(self):
3436
av = self.assertValid
3537

@@ -298,12 +300,15 @@ def test_warning(self):
298300
warnings.simplefilter('error', SyntaxWarning)
299301
compile_command(r"'\e'", symbol='exec')
300302

301-
def test_incomplete_warning(self):
302-
with warnings.catch_warnings(record=True) as w:
303-
warnings.simplefilter('always')
304-
self.assertIncomplete("'\\e' + (")
305-
self.assertEqual(w, [])
303+
# TODO: RUSTPYTHON
304+
#def test_incomplete_warning(self):
305+
# with warnings.catch_warnings(record=True) as w:
306+
# warnings.simplefilter('always')
307+
# self.assertIncomplete("'\\e' + (")
308+
# self.assertEqual(w, [])
306309

310+
# TODO: RUSTPYTHON
311+
@unittest.expectedFailure
307312
def test_invalid_warning(self):
308313
with warnings.catch_warnings(record=True) as w:
309314
warnings.simplefilter('always')

0 commit comments

Comments
 (0)