From 53a2bb447e3d4b37a128ba62e0a43d720db1d4f7 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 19 Aug 2008 21:01:52 +0000 Subject: Fix a failure in bsddb tests, following the changes in regular expression semantics --- Lib/bsddb/test/test_dbtables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index 061a731..fdec618 100644 --- a/Lib/bsddb/test/test_dbtables.py +++ b/Lib/bsddb/test/test_dbtables.py @@ -173,8 +173,8 @@ class TableDBTestCase(unittest.TestCase): # 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 -- cgit v0.12