New-style classes implemented for python 2.7 - #2147

This commit is contained in:
Michal Wajszczuk
2017-02-16 19:41:51 +01:00
parent da828aac05
commit fb0b90646e
61 changed files with 351 additions and 349 deletions

View File

@@ -18,7 +18,7 @@ def custom_pdb_calls():
called = []
# install dummy debugger class and track which methods were called on it
class _CustomPdb:
class _CustomPdb(object):
def __init__(self, *args, **kwargs):
called.append("init")
@@ -33,7 +33,7 @@ def custom_pdb_calls():
class TestPDB:
class TestPDB(object):
@pytest.fixture
def pdblist(self, request):
@@ -374,7 +374,7 @@ class TestPDB:
def test_pdb_custom_cls_with_settrace(self, testdir, monkeypatch):
testdir.makepyfile(custom_pdb="""
class CustomPdb:
class CustomPdb(object):
def set_trace(*args, **kwargs):
print 'custom set_trace>'
""")