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:
holger krekel 2011-12-20 12:20:59 +00:00
parent 8e83af1c33
commit f2791988f9
4 changed files with 8 additions and 6 deletions

View File

@ -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
- fix issue101: wrong args to unittest.TestCase test function now
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
----------------------------------------

View File

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

View File

@ -259,7 +259,8 @@ class Module(pytest.File, PyCollectorMixin):
" %s\n"
"which is not the same as the test file we want to collect:\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
)
#print "imported test module", mod

View File

@ -24,7 +24,7 @@ def main():
name='pytest',
description='py.test: simple powerful testing with Python',
long_description = long_description,
version='2.2.2.dev2',
version='2.2.2.dev3',
url='http://pytest.org',
license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
@ -32,7 +32,7 @@ def main():
author_email='holger at merlinux.eu',
entry_points= make_entry_points(),
# 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',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
@ -70,4 +70,4 @@ def make_entry_points():
return {'console_scripts': l}
if __name__ == '__main__':
main()
main()