diff options
-rw-r--r-- | Lib/bsddb/test/test_compare.py | 2 | ||||
-rw-r--r-- | Lib/bsddb/test/test_thread.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/bsddb/test/test_compare.py b/Lib/bsddb/test/test_compare.py index eefc7c2..a36faae 100644 --- a/Lib/bsddb/test/test_compare.py +++ b/Lib/bsddb/test/test_compare.py @@ -6,7 +6,7 @@ import shutil import sys, os, re from io import StringIO import tempfile -import test_all +from . import test_all import unittest try: diff --git a/Lib/bsddb/test/test_thread.py b/Lib/bsddb/test/test_thread.py index a347911..20a643b 100644 --- a/Lib/bsddb/test/test_thread.py +++ b/Lib/bsddb/test/test_thread.py @@ -51,7 +51,7 @@ class BaseThreadedTestCase(unittest.TestCase): self.homeDir = homeDir try: os.mkdir(homeDir) - except OSError, e: + except OSError as e: if e.errno != errno.EEXIST: raise self.env = db.DBEnv() self.setEnvOpts() @@ -68,7 +68,7 @@ class BaseThreadedTestCase(unittest.TestCase): self.env.close() try: shutil.rmtree(self.homeDir) - except OSError, e: + except OSError as e: if e.errno != errno.EEXIST: raise def setEnvOpts(self): |