Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved last function from py2 to py3 #527

Merged
merged 2 commits into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions tests/test_config/test_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,6 @@ def test_unicode_(func, expected):
assert Signature(func).__unicode__() == expected


def test_unicode_special():
assert re.match("complex_function_name\(a=1, b=u?'fo', c=9\)",
Signature(complex_function_name).__unicode__())


@pytest.mark.parametrize('name,func', zip(names, functions))
def test_repr_(name, func):
regex = "<Signature at 0x[0-9a-fA-F]+ for '%s'>"
Expand Down
5 changes: 5 additions & 0 deletions tests/test_config/test_signature_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ def test_unicode_(func, expected):
assert Signature(func).__unicode__() == expected


def test_unicode_special():
str_signature = "complex_function_name(a=5, b='fo', c=9)"
assert str_signature in Signature(complex_function_name).__unicode__()


@pytest.mark.parametrize('name,func', zip(names, functions))
def test_repr_(name, func):
regex = "<Signature at 0x[0-9a-fA-F]+ for '%s'>"
Expand Down