[Forensics-changes] [yara] 404/407: Fix an issue with test cases in Python 3.x
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:28:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.3.0
in repository yara.
commit 6468404145382c21a385112d191cb250e5a4a047
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Tue Feb 10 13:02:36 2015 +0100
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 b5c1d22..fe335f8 100644
--- a/yara-python/tests.py
+++ b/yara-python/tests.py
@@ -371,7 +371,7 @@ class TestYara(unittest.TestCase):
'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 @@ class TestYara(unittest.TestCase):
'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__":
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git
More information about the forensics-changes
mailing list