[pypy-svn] r76350 - pypy/branch/x86-64-jit-backend/pypy/jit/backend/test

jcreigh at codespeak.net jcreigh at codespeak.net
Mon Jul 26 17:07:54 CEST 2010


Author: jcreigh
Date: Mon Jul 26 17:07:47 2010
New Revision: 76350

Modified:
   pypy/branch/x86-64-jit-backend/pypy/jit/backend/test/runner_test.py
Log:
fix bug in float tests that sometimes caused a false negative depending on arbitrary set ordering

Modified: pypy/branch/x86-64-jit-backend/pypy/jit/backend/test/runner_test.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/jit/backend/test/runner_test.py	(original)
+++ pypy/branch/x86-64-jit-backend/pypy/jit/backend/test/runner_test.py	Mon Jul 26 17:07:47 2010
@@ -1072,9 +1072,10 @@
                         operations[1].fail_args = []
                         looptoken = LoopToken()
                         # Use "set" to unique-ify inputargs
-                        self.cpu.compile_loop(list(set(testcase)), operations,
+                        unique_testcase_list = list(set(testcase))
+                        self.cpu.compile_loop(unique_testcase_list, operations,
                                               looptoken)
-                        for i, box in enumerate(testcase):
+                        for i, box in enumerate(unique_testcase_list):
                             self.cpu.set_future_value_float(i, box.value)
                         fail = self.cpu.execute_token(looptoken)
                         if fail.identifier != 5 - (expected_id^expected):



More information about the Pypy-commit mailing list