fix issue102: report more useful errors and hints for when a
test directory was renamed and some pyc/__pycache__ remain
This commit is contained in:
parent
8e83af1c33
commit
f2791988f9
|
@ -5,7 +5,8 @@ Changes between 2.2.1 and 2.2.2.dev
|
||||||
- use distribute_setup script defaulting to 0.6.24 if no setuptools is installed
|
- use distribute_setup script defaulting to 0.6.24 if no setuptools is installed
|
||||||
- fix issue101: wrong args to unittest.TestCase test function now
|
- fix issue101: wrong args to unittest.TestCase test function now
|
||||||
produce better output
|
produce better output
|
||||||
|
- fix issue102: report more useful errors and hints for when a
|
||||||
|
test directory was renamed and some pyc/__pycache__ remain
|
||||||
|
|
||||||
Changes between 2.2.0 and 2.2.1
|
Changes between 2.2.0 and 2.2.1
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#
|
#
|
||||||
__version__ = '2.2.2.dev2'
|
__version__ = '2.2.2.dev3'
|
||||||
|
|
|
@ -259,7 +259,8 @@ class Module(pytest.File, PyCollectorMixin):
|
||||||
" %s\n"
|
" %s\n"
|
||||||
"which is not the same as the test file we want to collect:\n"
|
"which is not the same as the test file we want to collect:\n"
|
||||||
" %s\n"
|
" %s\n"
|
||||||
"HINT: use a unique basename for your test file modules"
|
"HINT: remove __pycache__ / .pyc files and/or use a "
|
||||||
|
"unique basename for your test file modules"
|
||||||
% e.args
|
% e.args
|
||||||
)
|
)
|
||||||
#print "imported test module", mod
|
#print "imported test module", mod
|
||||||
|
|
4
setup.py
4
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.2.dev2',
|
version='2.2.2.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'],
|
||||||
|
@ -32,7 +32,7 @@ def main():
|
||||||
author_email='holger at merlinux.eu',
|
author_email='holger at merlinux.eu',
|
||||||
entry_points= make_entry_points(),
|
entry_points= make_entry_points(),
|
||||||
# the following should be enabled for release
|
# the following should be enabled for release
|
||||||
install_requires=['py>=1.4.6'],
|
install_requires=['py>=1.4.7.dev2'],
|
||||||
classifiers=['Development Status :: 6 - Mature',
|
classifiers=['Development Status :: 6 - Mature',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
'License :: OSI Approved :: MIT License',
|
'License :: OSI Approved :: MIT License',
|
||||||
|
|
Loading…
Reference in New Issue