summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-24 17:03:51 (GMT)
committerGitHub <noreply@github.com>2020-06-24 17:03:51 (GMT)
commit1dda40c1d2681a8f03a567b72698d88ced6bbd6c (patch)
tree7aa5299fa1906420623cd3e2a260f40c7804e0dd /Lib
parent1813d318fd4e517042415fa4f59fe8668c17a235 (diff)
downloadcpython-1dda40c1d2681a8f03a567b72698d88ced6bbd6c.zip
cpython-1dda40c1d2681a8f03a567b72698d88ced6bbd6c.tar.gz
cpython-1dda40c1d2681a8f03a567b72698d88ced6bbd6c.tar.bz2
bpo-41094: Additional fix for PYTHONSTARTUP. (GH-21119)
(cherry picked from commit a7dc71470156680f1fd5243290c6d377824b7ef4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib')
-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 886ccc5..ec2b416 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -1309,7 +1309,7 @@ class AuditingTests(EmbeddingTestsMixin, unittest.TestCase):
self.run_embedded_interpreter("test_audit_run_file", timeout=3, 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)
@@ -1321,7 +1321,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: