Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r75501:12acb89160b9
Date: 2015-01-23 12:31 +0100
http://bitbucket.org/pypy/pypy/changeset/12acb89160b9/
Log: Fix tests
diff --git a/pypy/module/__pypy__/test/test_atomic.py
b/pypy/module/__pypy__/test/test_atomic.py
--- a/pypy/module/__pypy__/test/test_atomic.py
+++ b/pypy/module/__pypy__/test/test_atomic.py
@@ -3,23 +3,6 @@
from rpython.rtyper.lltypesystem import rffi
-def test_bdecode(space):
- from pypy.module.__pypy__.interp_atomic import bdecode
- def bdec(s, expected):
- p = rffi.str2charp(s)
- w_obj, q = bdecode(space, p)
- assert q == rffi.ptradd(p, len(s))
- rffi.free_charp(p)
- w_expected = space.wrap(expected)
- assert space.eq_w(w_obj, w_expected)
-
- bdec("i123e", 123)
- bdec("i-123e", -123)
- bdec('12:+"*-%&/()=?\x00', '+"*-%&/()=?\x00')
- bdec("li123eli456eee", [123, [456]])
- bdec("l5:abcdei2ee", ["abcde", 2])
-
-
class AppTestAtomic(GenericTestThread):
def test_simple(self):
diff --git a/pypy/module/__pypy__/test/test_signal.py
b/pypy/module/__pypy__/test/test_signal.py
--- a/pypy/module/__pypy__/test/test_signal.py
+++ b/pypy/module/__pypy__/test/test_signal.py
@@ -4,7 +4,7 @@
class AppTestMinimal:
- spaceconfig = dict(usemodules=['__pypy__'])
+ spaceconfig = dict(usemodules=['__pypy__', 'thread'])
def test_signal(self):
from __pypy__ import thread
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit