From 18c29e3e87904cb7ad962f53384a3b37aca50e8a Mon Sep 17 00:00:00 2001
From: Victor M. Alvarez <vmalvarez@virustotal.com>
Date: Sat, 7 Oct 2017 23:16:35 +0200
Subject: [PATCH] Make test case work for Python 2.6

---
 tests.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests.py b/tests.py
index 3eefbdd..053c663 100644
--- a/tests.py
+++ b/tests.py
@@ -755,8 +755,7 @@ class TestYara(unittest.TestCase):
         r = yara.compile(p2)
         self.assertTrue(len(r.match(data='dummy')) == 2)
 
-        with self.assertRaises(yara.SyntaxError):
-            yara.compile(source='include "test"', includes=False)
+        self.assertRaises(yara.SyntaxError, yara.compile, source='include "test"', includes=False)
 
     def testExternals(self):
 
--
libgit2 0.26.0