From 6468404145382c21a385112d191cb250e5a4a047 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Tue, 10 Feb 2015 13:02:36 +0100 Subject: [PATCH] Fix an issue with test cases in Python 3.x --- yara-python/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yara-python/tests.py b/yara-python/tests.py index b5c1d22a9b..fe335f8002 100644 --- a/yara-python/tests.py +++ b/yara-python/tests.py @@ -371,7 +371,7 @@ def testBitwiseOperators(self): 'rule test { condition: 1 << 3 == 8 }', 'rule test { condition: 1 | 3 ^ 3 == 1 | (3 ^ 3) }' ]) - + self.assertFalseRules([ 'rule test { condition: ~0xAA ^ 0x5A & 0xFF == 0x0F }', 'rule test { condition: 1 | 3 ^ 3 == (1 | 3) ^ 3}' @@ -827,7 +827,7 @@ def testIntegerFunctions(self): 'rule test { condition: uint8be(0) == 0xAA}', 'rule test { condition: uint16be(0) == 0xAABB}', 'rule test { condition: uint32be(0) == 0xAABBCCDD}', - ], '\xAA\xBB\xCC\xDD') + ], b'\xAA\xBB\xCC\xDD') if __name__ == "__main__":