fix py3 compat
This commit is contained in:
parent
a324826dfd
commit
ae53d04780
|
@ -1,2 +1,2 @@
|
||||||
#
|
#
|
||||||
__version__ = '2.2.0.dev2'
|
__version__ = '2.2.0.dev3'
|
||||||
|
|
|
@ -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:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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'],
|
||||||
|
|
Loading…
Reference in New Issue