]> granicus.if.org Git - python/commitdiff
Fix a failure in bsddb tests, following the changes in regular expression semantics
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 19 Aug 2008 21:01:52 +0000 (21:01 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 19 Aug 2008 21:01:52 +0000 (21:01 +0000)
Lib/bsddb/test/test_dbtables.py

index 061a731954edf1f7c76bbfb0034b98cfa66d867e..fdec6180cda3c41a2211fd08a7dd300831d29cf7 100644 (file)
@@ -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