[Python-checkins] r60307 - python/trunk/Lib/bsddb/test/test_thread.py
neal.norwitz
python-checkins at python.org
Sat Jan 26 08:38:03 CET 2008
Author: neal.norwitz
Date: Sat Jan 26 08:38:03 2008
New Revision: 60307
Modified:
python/trunk/Lib/bsddb/test/test_thread.py
Log:
Fix exception in tearDown on ppc buildbot. If there's no directory,
that shouldn't cause the test to fail. Just like it setUp.
Modified: python/trunk/Lib/bsddb/test/test_thread.py
==============================================================================
--- python/trunk/Lib/bsddb/test/test_thread.py (original)
+++ python/trunk/Lib/bsddb/test/test_thread.py Sat Jan 26 08:38:03 2008
@@ -58,7 +58,7 @@
try:
os.mkdir(homeDir)
except OSError, e:
- if e.errno <> errno.EEXIST: raise
+ if e.errno != errno.EEXIST: raise
self.env = db.DBEnv()
self.setEnvOpts()
self.env.open(homeDir, self.envflags | db.DB_CREATE)
@@ -72,7 +72,10 @@
def tearDown(self):
self.d.close()
self.env.close()
- shutil.rmtree(self.homeDir)
+ try:
+ shutil.rmtree(self.homeDir)
+ except OSError, e:
+ if e.errno != errno.EEXIST: raise
def setEnvOpts(self):
pass
More information about the Python-checkins
mailing list