diff --git a/tests/run-tests.py b/tests/run-tests.py
index fd31a323749895091042ab12477415c4d2af4ff4_dGVzdHMvcnVuLXRlc3RzLnB5..afbcea270bb81ae512384ff2b0de95538106f7fd_dGVzdHMvcnVuLXRlc3RzLnB5 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -144,7 +144,7 @@
     (options, args) = parser.parse_args()
 
     # jython is always pure
-    if 'java' in sys.platform:
+    if 'java' in sys.platform or '__pypy__' in sys.modules:
         options.pure = True
 
     if options.with_hg: