◐ Shell
clean mode source ↗

[3.13] gh-145234: Normalize decoded CR in string tokenizer (GH-145281) by pablogsal · Pull Request #145312 · python/cpython

Expand Up @@ -207,6 +207,14 @@ def test_quiet(self): with self.assertRaises(py_compile.PyCompileError): py_compile.compile(bad_coding, doraise=True, quiet=1)
def test_utf7_decoded_cr_compiles(self): with open(self.source_path, 'wb') as file: file.write(b"#coding=U7+AA0''\n")
pyc_path = py_compile.compile(self.source_path, self.pyc_path, doraise=True) self.assertEqual(pyc_path, self.pyc_path) self.assertTrue(os.path.exists(self.pyc_path))

class PyCompileTestsWithSourceEpoch(PyCompileTestsBase, unittest.TestCase, Expand Down