Commits

Manuel Jacob committed b507401

Don't test for hash randomization on PyPy.

  • Participants
  • Parent commits 33195ea
  • Branches py3k

Comments (0)

Files changed (1)

File lib-python/3.2/test/test_cmd_line.py

 import subprocess
 import tempfile
 from test.script_helper import spawn_python, kill_python, assert_python_ok, assert_python_failure
+from test.support import check_impl_detail
 
 
 # XXX (ncoghlan): Move to script_helper and make consistent with run_python
             rc, out, err = assert_python_ok('-R', '-c', code)
             self.assertEqual(rc, 0)
             hashes.append(out)
-        self.assertNotEqual(hashes[0], hashes[1])
+        if check_impl_detail(pypy=False):  # PyPy does not really implement it!
+            self.assertNotEqual(hashes[0], hashes[1])
 
         # Verify that sys.flags contains hash_randomization
         code = 'import sys; print("random is", sys.flags.hash_randomization)'