You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally reported by: Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco)
I encountered an issue (during test collection) where I get a type error when the test function is named test. The error occurs on Linux and Windows. Here's a simple example to reproduce:
jaraco@shinobi:~/projects/foo$ ls -R
.:
mymod test
./mymod:
__init__.py __init__.pyc test.py test.pyc
./test:
test.py test.pyc
jaraco@shinobi:~/projects/foo$ cat mymod/test.py
class test(object): pass
jaraco@shinobi:~/projects/foo$ cat test/test.py
from mymod.test import test
jaraco@shinobi:~/projects/foo$ PYTHONPATH=. py.test test/test.py
============================= test session starts ==============================
platform linux2 -- Python 2.7.1 -- pytest-2.0.2
collected 0 items / 1 errors
==================================== ERRORS ====================================
________________________ ERROR collecting test/test.py _________________________
../../lib/python2.7/inspect.py:749: in getargs
> raise TypeError('{!r} is not a code object'.format(co))
E TypeError: <class 'mymod.test.test'> is not a code object
=========================== 1 error in 0.04 seconds ============================
* Py3k Support across most of the modules
* Added devpi server fixture to create an index for a test function
* Handle pyramid installed as a transient test egg
* Update setup.cfg to current pytest standard
* Updated plugins using old pytest_funcarg__ syntax
* Adding debug to httpd server
* Split up httpd modules config from main template so derived classes can override this. Updated modules to include worker definitions now required in recent linux distros
Originally reported by: Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco)
I encountered an issue (during test collection) where I get a type error when the test function is named test. The error occurs on Linux and Windows. Here's a simple example to reproduce:
The text was updated successfully, but these errors were encountered: