summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2012-01-23 09:29:05 -0800
committerBob Ippolito <bob@redivi.com>2012-01-23 09:29:05 -0800
commita730c378fca6b046bc9586573cf9bc688b53bf08 (patch)
tree95d4b8f377ae5e2b5c30d076c9874373c9690ce2
parent2566746c4c29b143a32da2ce68e48f949f7a9a92 (diff)
downloadxattr-a730c378fca6b046bc9586573cf9bc688b53bf08.tar.gz
remove extra whitespace and tempnam() call
-rw-r--r--xattr/tests/test_xattr.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/xattr/tests/test_xattr.py b/xattr/tests/test_xattr.py
index 0124fef..3a920ec 100644
--- a/xattr/tests/test_xattr.py
+++ b/xattr/tests/test_xattr.py
@@ -1,7 +1,6 @@
import os
from unittest import TestCase
from tempfile import mkdtemp, NamedTemporaryFile
-from os import tempnam
import xattr
@@ -30,12 +29,12 @@ class TestFile(TestCase):
del x['user.sop.foo']
del x
-
+
x = xattr.xattr(self.tempfile)
self.assertTrue('user.sop.foo' not in x)
def testSymlinkAttrs(self):
- symlinkPath = tempnam()
+ symlinkPath = self.tempfilename + '.link'
os.symlink(self.tempfilename, symlinkPath)
try:
symlink = xattr.xattr(symlinkPath, options=xattr.XATTR_NOFOLLOW)
@@ -50,6 +49,6 @@ class TestDir(TestFile):
def setUp(self):
self.tempfile = mkdtemp()
self.tempfilename = self.tempfile
-
+
def tearDown(self):
os.rmdir(self.tempfile)