Skip to content

Commit

Permalink
Fix decorator misuse.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jun 26, 2023
1 parent 0979a41 commit 0fce286
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Cython/Build/Tests/TestIpythonMagic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import io
import sys
from contextlib import contextmanager
from functools import partial
from unittest import skipIf

from Cython.Build import IpythonMagic
Expand All @@ -27,8 +26,8 @@ def skip_if_not_installed(c):
return c

# not using IPython's decorators here because they depend on "nose"
skip_win32 = partial(skipIf, sys.platform == 'win32', "Skip on Windows")
skip_py27 = partial(skipIf, sys.version_info[:2] == (2,7), "Disabled in Py2.7")
skip_win32 = skipIf(sys.platform == 'win32', "Skip on Windows")
skip_py27 = skipIf(sys.version_info[:2] == (2,7), "Disabled in Py2.7")

try:
# disable IPython history thread before it gets started to avoid having to clean it up
Expand Down

0 comments on commit 0fce286

Please sign in to comment.