From 05b4e29f7f35108a7a17f072dc1329fc14d6b9ea Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 21 Jan 2010 16:45:06 +1300 Subject: pyxattr: Fix tests by not opening tdb files multiple times. --- source4/scripting/python/samba/tests/xattr.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'source4') diff --git a/source4/scripting/python/samba/tests/xattr.py b/source4/scripting/python/samba/tests/xattr.py index 41a22b7706..7133a2b5b3 100644 --- a/source4/scripting/python/samba/tests/xattr.py +++ b/source4/scripting/python/samba/tests/xattr.py @@ -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() -- cgit