From: Antoine Pitrou Date: Tue, 19 Aug 2008 21:01:52 +0000 (+0000) Subject: Fix a failure in bsddb tests, following the changes in regular expression semantics X-Git-Tag: v3.0b3~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53a2bb447e3d4b37a128ba62e0a43d720db1d4f7;p=python Fix a failure in bsddb tests, following the changes in regular expression semantics --- diff --git a/Lib/bsddb/test/test_dbtables.py b/Lib/bsddb/test/test_dbtables.py index 061a731954..fdec6180cd 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