[pypy-commit] pypy default: Fix.

arigo noreply at buildbot.pypy.org
Wed Mar 14 22:27:11 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r53606:abce1e21beec
Date: 2012-03-14 14:21 -0700
http://bitbucket.org/pypy/pypy/changeset/abce1e21beec/

Log:	Fix.

diff --git a/pypy/module/_multiprocessing/test/test_semaphore.py b/pypy/module/_multiprocessing/test/test_semaphore.py
--- a/pypy/module/_multiprocessing/test/test_semaphore.py
+++ b/pypy/module/_multiprocessing/test/test_semaphore.py
@@ -1,7 +1,6 @@
 from pypy.conftest import gettestobjspace
 from pypy.module._multiprocessing.interp_semaphore import (
     RECURSIVE_MUTEX, SEMAPHORE)
-from pypy.rlib.rarithmetic import is_valid_int
 
 
 class AppTestSemaphore:
@@ -22,7 +21,7 @@
         sem = SemLock(kind, value, maxvalue)
         assert sem.kind == kind
         assert sem.maxvalue == maxvalue
-        assert is_valid_int(sem.handle)
+        assert isinstance(sem.handle, (int, long))
 
         assert sem._count() == 0
         if sys.platform == 'darwin':


More information about the pypy-commit mailing list