]> granicus.if.org Git - python/commitdiff
* fix failing test_recno.py - backport from trunk.
authorGregory P. Smith <greg@mad-scientist.com>
Wed, 7 Nov 2007 07:25:20 +0000 (07:25 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Wed, 7 Nov 2007 07:25:20 +0000 (07:25 +0000)
* bump _bsddb patch version number.

Lib/bsddb/test/test_recno.py
Modules/_bsddb.c

index f1ea56afdba54910c73a81b38b8d64ab738c5c0f..4b36a40a02746b84d815887e6891cffd21de044e 100644 (file)
@@ -118,7 +118,7 @@ class SimpleRecnoTestCase(unittest.TestCase):
         assert not d.has_key(13)
 
         data = d.get_both(26, "z" * 60)
-        assert data == "z" * 60
+        assert data == "z" * 60, 'was %r' % data
         if verbose:
             print data
 
@@ -203,10 +203,10 @@ class SimpleRecnoTestCase(unittest.TestCase):
         just a line in the file, but you can set a different record delimiter
         if needed.
         """
-        source = os.path.join(os.path.dirname(sys.argv[0]),
-                              'db_home/test_recno.txt')
-        if not os.path.isdir('db_home'):
-            os.mkdir('db_home')
+        homeDir = os.path.join(tempfile.gettempdir(), 'db_home')
+        source = os.path.join(homeDir, 'test_recno.txt')
+        if not os.path.isdir(homeDir):
+            os.mkdir(homeDir)
         f = open(source, 'w') # create the file
         f.close()
 
index 999e3025a3502ba5cb881b5b681434bca5b51910..943a4ea0e77df08f3df8748282229926a811264c 100644 (file)
@@ -98,7 +98,7 @@
 #error "eek! DBVER can't handle minor versions > 9"
 #endif
 
-#define PY_BSDDB_VERSION "4.4.5.2"
+#define PY_BSDDB_VERSION "4.4.5.3"
 static char *rcs_id = "$Id$";