Skip to content

Commit

Permalink
execute threding test only on python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Klein committed Sep 25, 2019
1 parent d203442 commit 5075db7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from urlquote import quote, unquote, quoting
from concurrent.futures import ThreadPoolExecutor, wait
import time
import urlquote
import pytest
Expand Down Expand Up @@ -39,8 +38,9 @@ def test_unquote_string_with_buffer_reallocation():
actual = unquote(u"/El%20Ni%C3%B1o/")
assert expected == actual


@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3")
def test_threading():
from concurrent.futures import ThreadPoolExecutor, wait
expected = u"/El Niño/".encode("utf-8")

def foo():
Expand All @@ -51,7 +51,7 @@ def foo():
assert future.result() == expected


@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3")
@pytest.mark.skipif(sys.version_info < (3, 7), reason="requires python3.7")
def test_python_3_7_quoting():
"""
This test verifies that the userinfo encoding is identical with the defaul urllib encoding
Expand Down

0 comments on commit 5075db7

Please sign in to comment.