summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_build_py.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/tests/test_command_build_py.py')
-rw-r--r--Lib/packaging/tests/test_command_build_py.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/packaging/tests/test_command_build_py.py b/Lib/packaging/tests/test_command_build_py.py
index 9b40e6d..3c5630b 100644
--- a/Lib/packaging/tests/test_command_build_py.py
+++ b/Lib/packaging/tests/test_command_build_py.py
@@ -72,10 +72,10 @@ class BuildPyTestCase(support.TempdirManager,
sources = self.mkdtemp()
pkg = os.path.join(sources, 'pkg')
os.mkdir(pkg)
- open(os.path.join(pkg, "__init__.py"), "w").close()
+ open(os.path.join(pkg, "__init__.py"), "wb").close()
testdir = os.path.join(pkg, "doc")
os.mkdir(testdir)
- open(os.path.join(testdir, "testfile"), "w").close()
+ open(os.path.join(testdir, "testfile"), "wb").close()
os.chdir(sources)
old_stdout = sys.stdout