[pypy-commit] pypy default: cleanup missing import; skip leak tests on win32

mattip pypy.commits at gmail.com
Mon Feb 3 15:11:25 EST 2020


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r98648:42e62fffae16
Date: 2020-02-03 10:02 +0200
http://bitbucket.org/pypy/pypy/changeset/42e62fffae16/

Log:	cleanup missing import; skip leak tests on win32

diff --git a/pypy/module/_multiprocessing/test/test_connection.py b/pypy/module/_multiprocessing/test/test_connection.py
--- a/pypy/module/_multiprocessing/test/test_connection.py
+++ b/pypy/module/_multiprocessing/test/test_connection.py
@@ -38,6 +38,9 @@
             assert isinstance(e, multiprocessing.ProcessError)
             assert e.args == ("data",)
 
+    if sys.platform == "win32":
+        test_exception.dont_track_allocations = True
+
 class BaseConnectionTest(object):
     def test_connection(self):
         import sys
@@ -54,6 +57,9 @@
         obj2 = rhandle.recv()
         assert obj == obj2
 
+    if sys.platform == "win32":
+        test_connection.dont_track_allocations = True
+
     def test_poll(self):
         import sys
         # if not translated, for win32
diff --git a/pypy/module/_multiprocessing/test/test_interp_semaphore.py b/pypy/module/_multiprocessing/test/test_interp_semaphore.py
--- a/pypy/module/_multiprocessing/test/test_interp_semaphore.py
+++ b/pypy/module/_multiprocessing/test/test_interp_semaphore.py
@@ -6,7 +6,8 @@
 from pypy.module.thread.os_lock import allocate_lock
 from pypy.module.thread.os_thread import start_new_thread
 from pypy.module._multiprocessing.interp_semaphore import (
-    create_semaphore, sem_unlink, W_SemLock)
+    create_semaphore, W_SemLock)
+
 
 @pytest.mark.parametrize('spaceconfig', [
     {'usemodules': ['_multiprocessing', 'thread']}])
diff --git a/pypy/module/_multiprocessing/test/test_memory.py b/pypy/module/_multiprocessing/test/test_memory.py
--- a/pypy/module/_multiprocessing/test/test_memory.py
+++ b/pypy/module/_multiprocessing/test/test_memory.py
@@ -15,6 +15,9 @@
         raises(TypeError, _multiprocessing.address_of_buffer, None)
         raises(TypeError, _multiprocessing.address_of_buffer, "a")
 
+    if sys.platform == "win32":
+        test_address_of.dont_track_allocations = True
+
     def test_mmap_address(self):
         import mmap
         import _multiprocessing


More information about the pypy-commit mailing list