mirror of
https://github.com/python/cpython.git
synced 2025-09-13 04:08:37 +00:00
[3.11] gh-96189: Fix test_invalid_utf8 on a number of build bots (GH-96190) (#96218)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
This commit is contained in:
parent
d7eea0f1ca
commit
c01fc9d30a
1 changed files with 38 additions and 38 deletions
|
@ -239,8 +239,8 @@ class UTF8ValidatorTest(unittest.TestCase):
|
|||
# it's an otherwise valid Python source file.
|
||||
template = b'"%s"\n'
|
||||
|
||||
with tempfile.TemporaryDirectory() as tmpd:
|
||||
fn = os.path.join(tmpd, 'test.py')
|
||||
fn = TESTFN
|
||||
self.addCleanup(unlink, fn)
|
||||
|
||||
def check(content):
|
||||
with open(fn, 'wb') as fp:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue