We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 101b0a2 commit 1f0559bCopy full SHA for 1f0559b
yara-python/tests.py
@@ -412,7 +412,11 @@ def testHexStrings(self):
412
413
rules = yara.compile(source='rule test { strings: $a = { 61 [0-3] (62|63) } condition: $a }')
414
matches = rules.match(data='abbb')
415
- self.assertTrue(matches[0].strings == [(0L, '$a', 'ab')])
+
416
+ if sys.version_info[0] >= 3:
417
+ self.assertTrue(matches[0].strings == [(0, '$a', bytes('ab', 'utf-8'))])
418
+ else:
419
+ self.assertTrue(matches[0].strings == [(0, '$a', 'ab')])
420
421
def testCount(self):
422
0 commit comments