From cff804399287b7d86b9b8a4cbc41ebbb4a94d24f Mon Sep 17 00:00:00 2001 From: William Bruneau Date: Thu, 11 Apr 2019 15:27:20 +0200 Subject: Fix python 2 --- test/jitter/jitcore.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/jitter') diff --git a/test/jitter/jitcore.py b/test/jitter/jitcore.py index af697e49..5618d172 100644 --- a/test/jitter/jitcore.py +++ b/test/jitter/jitcore.py @@ -24,7 +24,14 @@ try: except TypeError as te: pass else: - raise Exception("Should see that 0x1ffffffffffffffff is to big for RAX") + raise Exception("Should see that 0x1ffffffffffffffff is too big for RAX") + +try: + jitter.cpu.RAX = 0x10000000000000000 +except TypeError as te: + pass +else: + raise Exception("Should see that 0x10000000000000000 is too big for RAX") jitter.cpu.EAX = -0xefffffff assert jitter.cpu.EAX == 0x10000001 @@ -37,4 +44,4 @@ try: except TypeError as te: pass else: - raise Exception("Should see that -0x1ffffffff is to big for EAX") + raise Exception("Should see that -0x1ffffffff is too big for EAX") -- cgit 1.4.1