Commit 18c29e3e by Victor M. Alvarez

Make test case work for Python 2.6

parent 2daffa60
...@@ -755,8 +755,7 @@ class TestYara(unittest.TestCase): ...@@ -755,8 +755,7 @@ class TestYara(unittest.TestCase):
r = yara.compile(p2) r = yara.compile(p2)
self.assertTrue(len(r.match(data='dummy')) == 2) self.assertTrue(len(r.match(data='dummy')) == 2)
with self.assertRaises(yara.SyntaxError): self.assertRaises(yara.SyntaxError, yara.compile, source='include "test"', includes=False)
yara.compile(source='include "test"', includes=False)
def testExternals(self): def testExternals(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment