From ae53d04780e203c0ca232f4f13856575c3b86de5 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 8 Nov 2011 18:37:08 +0000 Subject: [PATCH] fix py3 compat --- _pytest/__init__.py | 2 +- _pytest/runner.py | 3 ++- setup.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/_pytest/__init__.py b/_pytest/__init__.py index 6b2bfabb7..03f7952fe 100644 --- a/_pytest/__init__.py +++ b/_pytest/__init__.py @@ -1,2 +1,2 @@ # -__version__ = '2.2.0.dev2' +__version__ = '2.2.0.dev3' diff --git a/_pytest/runner.py b/_pytest/runner.py index 6e19b0329..e91ebede3 100644 --- a/_pytest/runner.py +++ b/_pytest/runner.py @@ -35,9 +35,10 @@ def pytest_terminal_summary(terminalreporter): alldurations += rep.duration if not duration2rep: return - d2 = remaining = duration2rep.items() + d2 = list(duration2rep.items()) d2.sort() d2.reverse() + remaining = [] if not durations: tr.write_sep("=", "slowest test durations") else: diff --git a/setup.py b/setup.py index 0c3ac3213..76c83bcee 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def main(): name='pytest', description='py.test: simple powerful testing with Python', long_description = long_description, - version='2.2.0.dev2', + version='2.2.0.dev3', url='http://pytest.org', license='MIT license', platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],