summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-06-24 16:46:30 (GMT)
committerGitHub <noreply@github.com>2020-06-24 16:46:30 (GMT)
commita7dc71470156680f1fd5243290c6d377824b7ef4 (patch)
treebf3e39efe4cb3c94a9a83c4d6d470bd762452c77 /Lib/test/test_embed.py
parent33b79b11b891adea5a916df8e3779505b37aabe7 (diff)
downloadcpython-a7dc71470156680f1fd5243290c6d377824b7ef4.zip
cpython-a7dc71470156680f1fd5243290c6d377824b7ef4.tar.gz
cpython-a7dc71470156680f1fd5243290c6d377824b7ef4.tar.bz2
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r--Lib/test/test_embed.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index da70df7..e740fe8 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -1349,7 +1349,7 @@ class AuditingTests(EmbeddingTestsMixin, unittest.TestCase):
returncode=1)
def test_audit_run_interactivehook(self):
- startup = os.path.join(self.oldcwd, support.TESTFN) + (support.TESTFN or '') + ".py"
+ startup = os.path.join(self.oldcwd, support.TESTFN) + (support.FS_NONASCII or '') + ".py"
with open(startup, "w", encoding="utf-8") as f:
print("import sys", file=f)
print("sys.__interactivehook__ = lambda: None", file=f)
@@ -1362,7 +1362,7 @@ class AuditingTests(EmbeddingTestsMixin, unittest.TestCase):
os.unlink(startup)
def test_audit_run_startup(self):
- startup = os.path.join(self.oldcwd, support.TESTFN) + (support.TESTFN or '') + ".py"
+ startup = os.path.join(self.oldcwd, support.TESTFN) + (support.FS_NONASCII or '') + ".py"
with open(startup, "w", encoding="utf-8") as f:
print("pass", file=f)
try: