Discussion:
[Python-3000-checkins] r65879 - python/branches/py3k/Lib/bsddb/test/test_dbtables.py
antoine.pitrou
2008-08-19 21:01:52 UTC
Permalink
Author: antoine.pitrou
Date: Tue Aug 19 23:01:52 2008
New Revision: 65879

Log:
Fix a failure in bsddb tests, following the changes in regular expression semantics

Modified:
python/branches/py3k/Lib/bsddb/test/test_dbtables.py

Modified: python/branches/py3k/Lib/bsddb/test/test_dbtables.py
==============================================================================
--- python/branches/py3k/Lib/bsddb/test/test_dbtables.py (original)
+++ python/branches/py3k/Lib/bsddb/test/test_dbtables.py Tue Aug 19 23:01:52 2008
@@ -173,8 +173,8 @@

# this should return two rows
values = self.tdb.Select(tabname, ['b', 'a', 'd'],
- conditions={'e': re.compile('wuzzy').search,
- 'a': re.compile('^[0-9]+$').match})
+ conditions={'e': re.compile(b'wuzzy').search,
+ 'a': re.compile(b'^[0-9]+$').match})
self.assertEquals(len(values), 2)

# now lets delete one of them and try again

Loading...