summaryrefslogtreecommitdiffstats
path: root/layman/tests
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-09-23 23:03:26 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-09-23 23:03:26 -0700
commit25ae8b28da0632ed33935e32071c9aa683814da2 (patch)
treee533ddec419bcbd808a4560ef0403f5908415026 /layman/tests
parentf3e1976da8eeef942a95019669633255fa3b6c50 (diff)
downloadlayman-25ae8b28da0632ed33935e32071c9aa683814da2.tar.gz
layman-25ae8b28da0632ed33935e32071c9aa683814da2.tar.bz2
layman-25ae8b28da0632ed33935e32071c9aa683814da2.zip
make the tests more py3 compatibile.
Diffstat (limited to 'layman/tests')
-rwxr-xr-xlayman/tests/external.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/tests/external.py b/layman/tests/external.py
index e5e8c4e..00e4a82 100755
--- a/layman/tests/external.py
+++ b/layman/tests/external.py
@@ -54,7 +54,7 @@ class FormatSubpathCategory(unittest.TestCase):
# Read, write, re-read, compare
os1 = DbBase(config, [filename1])
- filename2 = os.tmpnam()
+ filename2 = tempfile.mkstemp()[1]
os1.write(filename2)
os2 = DbBase(config, [filename2])
os.unlink(filename2)