mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-24 17:59:58 +08:00
bugfix: comparison with None should raise exception in Python 2.7
This commit is contained in:
@@ -196,9 +196,9 @@ class TestUtils(ApiServerUnittest):
|
||||
self.assertTrue(utils.match_expected("123abc", 12, "startswith"))
|
||||
self.assertTrue(utils.match_expected(12345, 123, "startswith"))
|
||||
|
||||
self.assertTrue(utils.match_expected(None, None, "eq"))
|
||||
with self.assertRaises(exception.ValidationError):
|
||||
utils.match_expected(None, 3, "len_eq")
|
||||
|
||||
with self.assertRaises(exception.ValidationError):
|
||||
utils.match_expected("abc", None, "gt")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user