Merge pull request #1154 from niphlod/fix/1044

fixes #1044
This commit is contained in:
mdipierro
2016-01-04 09:41:58 -06:00
2 changed files with 10 additions and 4 deletions
+3
View File
@@ -618,6 +618,9 @@ class TestValidators(unittest.TestCase):
self.assertEqual(rtn, (u'hell', None))
rtn = IS_MATCH('hell', is_unicode=True)(u'hell')
self.assertEqual(rtn, (u'hell', None))
# regr test for #1044
rtn = IS_MATCH('hello')(u'\xff')
self.assertEqual(rtn, (u'\xff', 'Invalid expression'))
def test_IS_EQUAL_TO(self):