aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pkg.py')
-rw-r--r--Lib/test/test_pkg.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pkg.py b/Lib/test/test_pkg.py
index 36ea95c6084..919a019cabe 100644
--- a/Lib/test/test_pkg.py
+++ b/Lib/test/test_pkg.py
@@ -56,7 +56,7 @@ def runtest(hier, code):
root = tempfile.mkdtemp()
mkhier(root, hier)
savepath = sys.path[:]
- fd, fname = tempfile.mkstemp(binary=False)
+ fd, fname = tempfile.mkstemp(text=True)
os.write(fd, code)
os.close(fd)
try: