Commits

Armin Rigo  committed abce1e2

Fix.

  • Participants
  • Parent commits 11ecfd8

Comments (0)

Files changed (1)

File pypy/module/_multiprocessing/test/test_semaphore.py

 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:
         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':