mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-01 05:51:06 +00:00
Minor fix
This commit is contained in:
parent
7774c73291
commit
fd7eaf107b
7 changed files with 52 additions and 12 deletions
|
|
@ -435,6 +435,8 @@ class TestRealXPathSyntax(unittest.TestCase):
|
|||
payload = xpath._makePayload(original, boundary, "true()")
|
||||
try:
|
||||
count = self._count(template, payload)
|
||||
except unittest.SkipTest:
|
||||
raise # lxml unavailable -> skip cleanly; SkipTest is an Exception, so the broad except below would otherwise mask it into a failure
|
||||
except Exception as e:
|
||||
self.fail("Boundary '%s' in '%s' with orig='%s' invalid: %s\n payload: %s" % (bk, tkey, original, e, payload))
|
||||
self.assertIsInstance(count, int,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue