Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 53a2bb4

Browse files
committed
Fix a failure in bsddb tests, following the changes in regular expression semantics
1 parent 2d735bc commit 53a2bb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/bsddb/test/test_dbtables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ def test03(self):
173173

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

180180
# now lets delete one of them and try again

0 commit comments

Comments
 (0)