Skip to content

Commit 1e141b8

Browse files
committed
Fix only_pypy factory function.
1 parent 90fa7ec commit 1e141b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

domdf_python_tools/testing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def only_windows(reason: str = "Only required on Windows.", ) -> _pytest.mark.st
292292
return pytest.mark.skipif(condition=sys.platform != "win32", reason=reason)
293293

294294

295-
def not_pypy(reason: str = "Not required on PyPy.", ) -> _pytest.mark.structures.MarkDecorator:
295+
def not_pypy(reason: str = "Not required on PyPy.") -> _pytest.mark.structures.MarkDecorator:
296296
"""
297297
Factory function to return a ``@pytest.mark.skipif`` decorator that will
298298
skip a test if the current Python implementation is PyPy.
@@ -305,7 +305,7 @@ def not_pypy(reason: str = "Not required on PyPy.", ) -> _pytest.mark.structures
305305
return pytest.mark.skipif(condition=PYPY, reason=reason)
306306

307307

308-
def only_pypy(reason: str = "Only required on PyPy.", ) -> _pytest.mark.structures.MarkDecorator:
308+
def only_pypy(reason: str = "Only required on PyPy.") -> _pytest.mark.structures.MarkDecorator:
309309
"""
310310
Factory function to return a ``@pytest.mark.skipif`` decorator that will
311311
skip a test if the current Python implementation is not PyPy.
@@ -315,4 +315,4 @@ def only_pypy(reason: str = "Only required on PyPy.", ) -> _pytest.mark.structur
315315
.. versionadded:: 0.9.0
316316
"""
317317

318-
return pytest.mark.skipif(condition=PYPY, reason=reason)
318+
return pytest.mark.skipif(condition=not PYPY, reason=reason)

0 commit comments

Comments
 (0)