1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-28 11:42:03 +03:00

pyxattr: Fix tests by not opening tdb files multiple times.

This commit is contained in:
Jelmer Vernooij
2010-01-21 16:45:06 +13:00
parent 14b0fed96c
commit 05b4e29f7f

View File

@ -63,7 +63,6 @@ class XattrTests(TestCase):
def test_set_xattr_tdb(self):
path=os.environ['SELFTEST_PREFIX']
eadb=tdb.Tdb(os.path.join(path,"eadb.tdb"), 50000, tdb.DEFAULT, os.O_CREAT|os.O_RDWR)
random.seed()
tempf=os.path.join(path,"pytests"+str(int(100000*random.random())))
ntacl=xattr.NTACL()
@ -75,7 +74,6 @@ class XattrTests(TestCase):
def test_set_tdb_not_open(self):
path=os.environ['SELFTEST_PREFIX']
eadb=tdb.Tdb(os.path.join(path,"eadb.tdb"), 50000, tdb.DEFAULT, os.O_CREAT|os.O_RDWR)
random.seed()
tempf=os.path.join(path,"pytests"+str(int(100000*random.random())))
ntacl=xattr.NTACL()