summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-02-27 03:46:40 +0000
committerZac Medico <zmedico@gentoo.org>2009-02-27 03:46:40 +0000
commit223c15a9ceb5aca07ed52142250fa851c381fb21 (patch)
treeb832ba20fe8afcb15a1ec0a5c598c0900efdb0cd
parent58554a0816c282a35e55bf9a9cc821d026e5aacd (diff)
downloadportage-223c15a9ceb5aca07ed52142250fa851c381fb21.tar.gz
portage-223c15a9ceb5aca07ed52142250fa851c381fb21.tar.bz2
portage-223c15a9ceb5aca07ed52142250fa851c381fb21.zip
Open the temp file in text mode for py3k compatibility.
svn path=/main/trunk/; revision=12723
-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)