pyxattr: Fix tests by not opening tdb files multiple times.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 21 Jan 2010 03:45:06 +0000 (16:45 +1300)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 21 Jan 2010 03:45:06 +0000 (16:45 +1300)
source4/scripting/python/samba/tests/xattr.py

index 41a22b77064de155bac27837d83b2de1861650fe..7133a2b5b38b32062488917b509cf363f5cd0fb6 100644 (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()