[pypy-commit] pypy default: Test fix

arigo noreply at buildbot.pypy.org
Sun Jun 21 14:30:20 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r78229:8fca06d46f8c
Date: 2015-06-21 14:30 +0200
http://bitbucket.org/pypy/pypy/changeset/8fca06d46f8c/

Log:	Test fix

diff --git a/pypy/module/_socket/test/test_sock_app.py b/pypy/module/_socket/test/test_sock_app.py
--- a/pypy/module/_socket/test/test_sock_app.py
+++ b/pypy/module/_socket/test/test_sock_app.py
@@ -316,7 +316,8 @@
         cls.w_udir = space.wrap(str(udir))
 
     def teardown_class(cls):
-        cls.space.sys.getmodule('_socket').shutdown(cls.space)
+        if not cls.runappdirect:
+            cls.space.sys.getmodule('_socket').shutdown(cls.space)
 
     def test_module(self):
         import _socket


More information about the pypy-commit mailing list