Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update test_utf8source from v3.14.3
  • Loading branch information
CPython Developers authored and youknowone committed Mar 3, 2026
commit 33fca0d77b21d749621e46e5ab0b3c1e8d834267
10 changes: 3 additions & 7 deletions Lib/test/test_utf8source.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.

import unittest

class PEP3120Test(unittest.TestCase):
Expand All @@ -14,11 +12,10 @@ def test_pep3120(self):
b'\\\xd0\x9f'
)

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError
def test_badsyntax(self):
try:
import test.badsyntax_pep3120
import test.tokenizedata.badsyntax_pep3120 # noqa: F401
except SyntaxError as msg:
msg = str(msg).lower()
self.assertTrue('utf-8' in msg)
Expand All @@ -28,9 +25,8 @@ def test_badsyntax(self):

class BuiltinCompileTests(unittest.TestCase):

# TODO: RUSTPYTHON
@unittest.expectedFailure
# Issue 3574.
@unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError
def test_latin1(self):
# Allow compile() to read Latin-1 source.
source_code = '# coding: Latin-1\nu = "Ç"\n'.encode("Latin-1")
Expand Down