summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/tests/sets/files/testStaticFileSet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/tests/sets/files/testStaticFileSet.py b/pym/portage/tests/sets/files/testStaticFileSet.py
index 57a8c58cd..4c7a191b1 100644
--- a/pym/portage/tests/sets/files/testStaticFileSet.py
+++ b/pym/portage/tests/sets/files/testStaticFileSet.py
@@ -15,8 +15,8 @@ class StaticFileSetTestCase(TestCase):
def setUp(self):
fd, self.testfile = tempfile.mkstemp(suffix=".testdata", prefix=self.__class__.__name__, text=True)
- os.write(fd, "\n".join(test_cps))
os.close(fd)
+ open(self.testfile, 'w').write("\n".join(test_cps))
def tearDown(self):
os.unlink(self.testfile)