Skip to content

Commit 240835c

Browse files
committed
-
1 parent 42eeb93 commit 240835c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test_python_toolbox/test_monkeypatching_tools.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55

66
from __future__ import with_statement
77

8+
import sys
89
import uuid
910
import types
1011

12+
import nose
13+
1114
from python_toolbox import cute_inspect
1215
from python_toolbox import cute_testing
1316

@@ -103,6 +106,9 @@ def my_static_method(x):
103106

104107
def test_monkeypatch_classmethod():
105108

109+
if sys.version[:2] <= (2, 6):
110+
raise nose.SkipTest('Not supported on Python 2.6.')
111+
106112
class A(object):
107113
@classmethod
108114
def my_class_method(cls):
@@ -130,6 +136,9 @@ def test_monkeypatch_classmethod_subclass():
130136
131137
This is useful in Django, that uses its own `classmethod` subclass.
132138
'''
139+
if sys.version[:2] <= (2, 6):
140+
raise nose.SkipTest('Not supported on Python 2.6.')
141+
133142
class FunkyClassMethod(classmethod):
134143
is_funky = True
135144

0 commit comments

Comments
 (0)