Skip to content

Commit 6a501dc

Browse files
committed
Revert "add test_py_default_with_valid_bom and mark as expected failure"
This reverts commit 1a245fa. Was merely a demo to show that this PR does not fix the other issue :)
1 parent f015a1d commit 6a501dc

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Lib/test/test_launcher.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ def __enter__(self):
157157
self._preserved = self.path.read_bytes()
158158
except FileNotFoundError:
159159
self._preserved = None
160-
if isinstance(self.content, bytes):
161-
self.path.write_bytes(self.content)
162-
else:
163-
self.path.write_text(self.content, encoding="utf-16")
160+
self.path.write_text(self.content, encoding="utf-16")
164161

165162
def __exit__(self, *exc_info):
166163
if self._preserved is None:
@@ -475,15 +472,6 @@ def test_py_default(self):
475472
self.assertEqual("3.100", data["SearchInfo.tag"])
476473
self.assertEqual("X.Y.exe -arg", data["stdout"].strip())
477474

478-
@unittest.expectedFailure # fails until GH-99620 is fixed
479-
def test_py_default_with_valid_bom(self):
480-
content = TEST_PY_DEFAULTS.encode("utf-8")
481-
with self.py_ini(b"\xEF\xBB\xBF" + content):
482-
data = self.run_py(["-arg"])
483-
self.assertEqual("PythonTestSuite", data["SearchInfo.company"])
484-
self.assertEqual("3.100", data["SearchInfo.tag"])
485-
self.assertEqual("X.Y.exe -arg", data["stdout"].strip())
486-
487475
def test_py2_default(self):
488476
with self.py_ini(TEST_PY_DEFAULTS):
489477
data = self.run_py(["-2", "-arg"])

0 commit comments

Comments
 (0)