mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix a failure in bsddb tests, following the changes in regular expression semantics
This commit is contained in:
parent
2d735bc098
commit
53a2bb447e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue