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

Remove unused skipif markers #10

Merged
merged 1 commit into from
Jan 23, 2024
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
18 changes: 5 additions & 13 deletions tests/test_autorepr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
from textwrap import dedent
from unittest.mock import Mock

Expand Down Expand Up @@ -89,19 +88,13 @@ def __init__(self, a, b):
pass


@pytest.mark.skipif(sys.version_info < (3,), reason="Requires Python 3")
def test_kwonly():
code = dedent(
"""
with pytest.raises(ValueError):
@autorepr(positional='a')
class A:
def __init__(self, *, a):
pass
"""
)
with pytest.raises(ValueError):

exec(code)
@autorepr(positional="a")
class A:
def __init__(self, *, a):
pass


def test_exceptions():
Expand Down Expand Up @@ -161,7 +154,6 @@ def __init__(self, a, b):
assert repr(a) == "A(a=1, b=2)"


@pytest.mark.skipif(sys.version_info < (3, 2), reason="Requires Python 3.2+")
def test_recursive_repr():
"""Test that autorepr applies the :func:`reprlib.recursive_repr` decorator."""

Expand Down
2 changes: 0 additions & 2 deletions tests/test_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import textwrap

import pytest
Expand Down Expand Up @@ -205,7 +204,6 @@ def _repr_helper_(self, r):
assert pretty(ce) == textwrap.dedent(prettystr).lstrip()


@pytest.mark.skipif(sys.version_info < (3, 2), reason="Requires Python 3.2+")
def test_helper_mixin_recursive():
"""Test that the mixin applies the :func:`reprlib.recursive_repr` decorator."""

Expand Down