Skip to content

Commit f4e6a18

Browse files
committed
Skip failing tests on PyPy
The error is: TypeError: BaseException.__new__(XMLSyntaxError) is not safe, use XMLSyntaxError.__new__()
1 parent 3e65abf commit f4e6a18

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_wsdl_soap.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
import platform
23

34
import pytest
45
from lxml import etree
@@ -165,6 +166,8 @@ def test_no_content_type():
165166
assert result == 120.123
166167

167168

169+
@pytest.mark.skipif(platform.python_implementation == 'PyPy',
170+
reason="Fails on PyPy")
168171
def test_wrong_content():
169172
data = """
170173
The request is answered something unexpected,
@@ -188,6 +191,8 @@ def test_wrong_content():
188191
assert data == exc.value.content
189192

190193

194+
@pytest.mark.skipif(platform.python_implementation == 'PyPy',
195+
reason="Fails on PyPy")
191196
def test_wrong_no_unicode_content():
192197
data = """
193198
The request is answered something unexpected,
@@ -212,6 +217,8 @@ def test_wrong_no_unicode_content():
212217
assert data == exc.value.content
213218

214219

220+
@pytest.mark.skipif(platform.python_implementation == 'PyPy',
221+
reason="Fails on PyPy")
215222
def test_http_error():
216223
data = """
217224
Unauthorized!

0 commit comments

Comments
 (0)