mirror of https://github.com/python/cpython
* fix failing test_recno.py - backport from trunk.
* bump _bsddb patch version number.
This commit is contained in:
parent
e6a6f39cc7
commit
2e49f781cb
|
@ -118,7 +118,7 @@ class SimpleRecnoTestCase(unittest.TestCase):
|
||||||
assert not d.has_key(13)
|
assert not d.has_key(13)
|
||||||
|
|
||||||
data = d.get_both(26, "z" * 60)
|
data = d.get_both(26, "z" * 60)
|
||||||
assert data == "z" * 60
|
assert data == "z" * 60, 'was %r' % data
|
||||||
if verbose:
|
if verbose:
|
||||||
print data
|
print data
|
||||||
|
|
||||||
|
@ -203,10 +203,10 @@ class SimpleRecnoTestCase(unittest.TestCase):
|
||||||
just a line in the file, but you can set a different record delimiter
|
just a line in the file, but you can set a different record delimiter
|
||||||
if needed.
|
if needed.
|
||||||
"""
|
"""
|
||||||
source = os.path.join(os.path.dirname(sys.argv[0]),
|
homeDir = os.path.join(tempfile.gettempdir(), 'db_home')
|
||||||
'db_home/test_recno.txt')
|
source = os.path.join(homeDir, 'test_recno.txt')
|
||||||
if not os.path.isdir('db_home'):
|
if not os.path.isdir(homeDir):
|
||||||
os.mkdir('db_home')
|
os.mkdir(homeDir)
|
||||||
f = open(source, 'w') # create the file
|
f = open(source, 'w') # create the file
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
#error "eek! DBVER can't handle minor versions > 9"
|
#error "eek! DBVER can't handle minor versions > 9"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PY_BSDDB_VERSION "4.4.5.2"
|
#define PY_BSDDB_VERSION "4.4.5.3"
|
||||||
static char *rcs_id = "$Id$";
|
static char *rcs_id = "$Id$";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue