Skip to content

Commit 7dbe0c5

Browse files
committed
Mark as xfail instead of skip.
1 parent ea32fec commit 7dbe0c5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/main/test_http_aiohttp.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import sys
32

43
import aiohttp
54
import pytest
@@ -13,7 +12,7 @@
1312

1413

1514
@mocketize
16-
def test_http_session(event_loop):
15+
def test_http_session():
1716
url = "http://httpbin.org/ip"
1817
body = "asd" * 100
1918
Entry.single_register(Entry.GET, url, body=body, status=404)
@@ -36,9 +35,9 @@ async def perform_aiohttp_transactions():
3635
assert len(Mocket.request_list()) == 2
3736

3837

39-
@pytest.mark.skipif(sys.version_info >= (3, 11), reason="Failing with Python 3.11")
38+
@pytest.mark.xfail
4039
@mocketize
41-
def test_https_session(event_loop):
40+
def test_https_session():
4241
url = "https://httpbin.org/ip"
4342
body = "asd" * 100
4443
Entry.single_register(Entry.GET, url, body=body, status=404)
@@ -59,9 +58,9 @@ async def perform_aiohttp_transactions():
5958
assert len(Mocket.request_list()) == 2
6059

6160

62-
@pytest.mark.skipif(sys.version_info >= (3, 11), reason="Failing with Python 3.11")
61+
@pytest.mark.xfail
6362
@httprettified
64-
def test_httprettish_session(event_loop):
63+
def test_httprettish_session():
6564
url = "https://httpbin.org/ip"
6665
httpretty.register_uri(
6766
httpretty.GET,

0 commit comments

Comments
 (0)