summaryrefslogtreecommitdiff
path: root/testing/test_nose.py
diff options
context:
space:
mode:
authorMichal Wajszczuk <wajszczuk.m@gmail.com>2017-02-16 19:41:51 +0100
committerMichal Wajszczuk <wajszczuk.m@gmail.com>2017-02-16 20:28:17 +0100
commitfb0b90646ec86ced32d146ee42e25f4cd72d2229 (patch)
treec59e67d0781d0c7cee8aa7d65916f5d5da0448e9 /testing/test_nose.py
parentda828aac055a65a2127ba4208d973be6d4150a31 (diff)
downloadpytest-fb0b90646ec86ced32d146ee42e25f4cd72d2229.tar.gz
New-style classes implemented for python 2.7 - #2147
Diffstat (limited to 'testing/test_nose.py')
-rw-r--r--testing/test_nose.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/test_nose.py b/testing/test_nose.py
index f54246111..11fb83176 100644
--- a/testing/test_nose.py
+++ b/testing/test_nose.py
@@ -26,7 +26,7 @@ def test_setup_func_with_setup_decorator():
from _pytest.nose import call_optional
l = []
- class A:
+ class A(object):
@pytest.fixture(autouse=True)
def f(self):
l.append(1)
@@ -38,7 +38,7 @@ def test_setup_func_with_setup_decorator():
def test_setup_func_not_callable():
from _pytest.nose import call_optional
- class A:
+ class A(object):
f = 1
call_optional(A(), "f")
@@ -270,7 +270,7 @@ def test_nose_setup_ordering(testdir):
def setup_module(mod):
mod.visited = True
- class TestClass:
+ class TestClass(object):
def setup(self):
assert visited
def test_first(self):
@@ -377,7 +377,7 @@ def test_istest_class_decorator(testdir):
p = testdir.makepyfile("""
import nose.tools
@nose.tools.istest
- class NotTestPrefix:
+ class NotTestPrefix(object):
def test_method(self):
pass
""")
@@ -388,7 +388,7 @@ def test_nottest_class_decorator(testdir):
testdir.makepyfile("""
import nose.tools
@nose.tools.nottest
- class TestPrefix:
+ class TestPrefix(object):
def test_method(self):
pass
""")