fix py3 compat

This commit is contained in:
holger krekel 2011-11-08 18:37:08 +00:00
parent a324826dfd
commit ae53d04780
3 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,2 @@
# #
__version__ = '2.2.0.dev2' __version__ = '2.2.0.dev3'

View File

@ -35,9 +35,10 @@ def pytest_terminal_summary(terminalreporter):
alldurations += rep.duration alldurations += rep.duration
if not duration2rep: if not duration2rep:
return return
d2 = remaining = duration2rep.items() d2 = list(duration2rep.items())
d2.sort() d2.sort()
d2.reverse() d2.reverse()
remaining = []
if not durations: if not durations:
tr.write_sep("=", "slowest test durations") tr.write_sep("=", "slowest test durations")
else: else:

View File

@ -24,7 +24,7 @@ def main():
name='pytest', name='pytest',
description='py.test: simple powerful testing with Python', description='py.test: simple powerful testing with Python',
long_description = long_description, long_description = long_description,
version='2.2.0.dev2', version='2.2.0.dev3',
url='http://pytest.org', url='http://pytest.org',
license='MIT license', license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],