[Python-checkins] r58897 - in python/branches/release25-maint: Lib/bsddb/test/test_recno.py Modules/_bsddb.c

gregory.p.smith python-checkins at python.org
Wed Nov 7 08:25:21 CET 2007


Author: gregory.p.smith
Date: Wed Nov  7 08:25:20 2007
New Revision: 58897

Modified:
   python/branches/release25-maint/Lib/bsddb/test/test_recno.py
   python/branches/release25-maint/Modules/_bsddb.c
Log:
* fix failing test_recno.py - backport from trunk.
* bump _bsddb patch version number.


Modified: python/branches/release25-maint/Lib/bsddb/test/test_recno.py
==============================================================================
--- python/branches/release25-maint/Lib/bsddb/test/test_recno.py	(original)
+++ python/branches/release25-maint/Lib/bsddb/test/test_recno.py	Wed Nov  7 08:25:20 2007
@@ -118,7 +118,7 @@
         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 @@
         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()
 

Modified: python/branches/release25-maint/Modules/_bsddb.c
==============================================================================
--- python/branches/release25-maint/Modules/_bsddb.c	(original)
+++ python/branches/release25-maint/Modules/_bsddb.c	Wed Nov  7 08:25:20 2007
@@ -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$";
 
 


More information about the Python-checkins mailing list