summaryrefslogtreecommitdiff
blob: 5144201d2a1f762cc16f03b296b5c18013e22699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
diff --git a/testing/test_channel.py b/testing/test_channel.py
index 017abb0..0983bae 100644
--- a/testing/test_channel.py
+++ b/testing/test_channel.py
@@ -3,6 +3,7 @@
 mostly functional tests of gateways.
 """
 import time
+import platform
 
 import py
 import pytest
@@ -362,6 +363,7 @@ class TestChannelFile:
         s = f.read(5)
         assert s == ""
 
+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
     def test_channel_file_readline_remote(self, gw):
         channel = gw.remote_exec(
             """
@@ -382,7 +384,7 @@ class TestChannelFile:
 
 
 class TestStringCoerce:
-    @pytest.mark.skipif('sys.version>="3.0"')
+    @pytest.mark.skip(reason="trying to run stuff under different impls")
     def test_2to3(self, makegateway):
         python = _find_version("3")
         gw = makegateway("popen//python=%s" % python)
@@ -410,7 +412,7 @@ class TestStringCoerce:
         assert isinstance(res, str)
         gw.exit()
 
-    @pytest.mark.skipif('sys.version<"3.0"')
+    @pytest.mark.skip(reason="trying to run stuff under different impls")
     def test_3to2(self, makegateway):
         python = _find_version("2")
         gw = makegateway("popen//python=%s" % python)
diff --git a/testing/test_gateway.py b/testing/test_gateway.py
index fc1cf6a..b06a18d 100644
--- a/testing/test_gateway.py
+++ b/testing/test_gateway.py
@@ -5,6 +5,7 @@ mostly functional tests of gateways.
 import os
 import socket
 import subprocess
+import platform
 import sys
 from textwrap import dedent
 
@@ -153,6 +154,7 @@ class TestBasicGateway:
 
         assert result is True
 
+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
     def test_remote_exec_module_with_traceback(self, gw, tmpdir, monkeypatch):
         remotetest = tmpdir.join("remotetest.py")
         remotetest.write(
@@ -233,6 +235,7 @@ class TestBasicGateway:
         assert result == 42
 
     @needs_osdup
+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
     def test_confusion_from_os_write_stdout(self, gw):
         channel = gw.remote_exec(
             """
@@ -250,6 +253,7 @@ class TestBasicGateway:
         assert res == 42
 
     @needs_osdup
+    @pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
     def test_confusion_from_os_write_stderr(self, gw):
         channel = gw.remote_exec(
             """
@@ -355,6 +359,7 @@ class TestPopenGateway:
         )
         py.test.raises(channel.RemoteError, channel.receive)
 
+    @pytest.mark.skip(reason="fails if bytecode writing is on")
     def test_dont_write_bytecode(self, makegateway):
         check_sys_dont_write_bytecode = """
             import sys
@@ -498,7 +503,7 @@ class TestTracing:
 
 
 class TestStringCoerce:
-    @py.test.mark.skipif('sys.version>="3.0"')
+    @pytest.mark.skip(reason="trying to run stuff under different impls")
     def test_2to3(self, makegateway):
         python = _find_version("3")
         gw = makegateway("popen//python=%s" % python)
@@ -515,7 +520,7 @@ class TestStringCoerce:
         assert isinstance(res, str)
         gw.exit()
 
-    @py.test.mark.skipif('sys.version<"3.0"')
+    @pytest.mark.skip(reason="trying to run stuff under different impls")
     def test_3to2(self, makegateway):
         python = _find_version("2")
         gw = makegateway("popen//python=%s" % python)
diff --git a/testing/test_rsync.py b/testing/test_rsync.py
index 995f229..a3f69a3 100644
--- a/testing/test_rsync.py
+++ b/testing/test_rsync.py
@@ -230,6 +230,7 @@ class TestRSync:
         assert len(dest.listdir()) == 1
         assert len(source.listdir()) == 1
 
+    @pytest.mark.skip(reason="tries to run other python impls")
     @py.test.mark.skipif("sys.version_info >= (3,)")
     def test_2_to_3_bridge_can_send_binary_files(self, tmpdir, makegateway):
         python = _find_version("3")
diff --git a/testing/test_serializer.py b/testing/test_serializer.py
index 892e474..2f7f2f7 100644
--- a/testing/test_serializer.py
+++ b/testing/test_serializer.py
@@ -146,6 +146,7 @@ simple_tests = [
 ]
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 @py.test.mark.parametrize(["tp_name", "repr"], simple_tests)
 def test_simple(tp_name, repr, dump, load):
     p = dump(repr)
@@ -154,6 +155,7 @@ def test_simple(tp_name, repr, dump, load):
     assert v == repr
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_set(py2, py3, dump):
     p = dump("set((1, 2, 3))")
     tp, v = py2.load(p)
@@ -176,6 +178,7 @@ def test_set(py2, py3, dump):
     assert v == "set()"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_frozenset(py2, py3, dump):
     p = dump("frozenset((1, 2, 3))")
     tp, v = py2.load(p)
@@ -193,6 +196,7 @@ def test_frozenset(py2, py3, dump):
     assert v == "frozenset()"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_long(py2, py3):
     really_big = "9223372036854775807324234"
     p = py2.dump(really_big)
@@ -211,6 +215,7 @@ def test_long(py2, py3):
     assert v == really_big + "L"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_small_long(py2, py3):
     p = py2.dump("123L")
     tp, s = py2.load(p)
@@ -219,6 +224,7 @@ def test_small_long(py2, py3):
     assert s == "123"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_bytes(py2, py3):
     p = py3.dump("b'hi'")
     tp, v = py2.load(p)
@@ -229,6 +235,7 @@ def test_bytes(py2, py3):
     assert v == "b'hi'"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_str(py2, py3):
     p = py2.dump("'xyz'")
     tp, s = py2.load(p)
@@ -242,6 +249,7 @@ def test_str(py2, py3):
     assert tp == "bytes"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_unicode(py2, py3):
     p = py2.dump("u'hi'")
     tp, s = py2.load(p)
@@ -260,6 +268,7 @@ def test_unicode(py2, py3):
     assert s == "u'hi'"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_bool(py2, py3):
     p = py2.dump("True")
     tp, s = py2.load(p)
@@ -273,12 +282,14 @@ def test_bool(py2, py3):
     assert s == "False"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_none(dump, load):
     p = dump("None")
     tp, s = load(p)
     assert s == "None"
 
 
+@pytest.mark.skip(reason="trying to run stuff under different impls")
 def test_tuple_nested_with_empty_in_between(py2):
     p = py2.dump("(1, (), 3)")
     tp, s = py2.load(p)
diff --git a/testing/test_threadpool.py b/testing/test_threadpool.py
index d469436..a473e4a 100644
--- a/testing/test_threadpool.py
+++ b/testing/test_threadpool.py
@@ -3,6 +3,7 @@ from __future__ import with_statement
 
 import os
 import sys
+import platform
 
 import py
 import pytest
@@ -29,7 +30,7 @@ def test_simple(pool):
     reply = pool.spawn(lambda: 42)
     assert reply.get() == 42
 
-
+@pytest.mark.skipif('pypy' in platform.python_implementation().lower(), reason="broken on pypy")
 def test_some(pool, execmodel):
     q = execmodel.queue.Queue()
     num = 4