-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
pytest object has no attribute 'main' #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): made description readable |
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): i cant replicate as a sidenote, you need to pass a list into also try pytest.cmdline.main |
Original comment by Jason Lee (BitBucket: tutong, GitHub: tutong): printed pytest and I got
I tried pytest.cmdline.main and got
the same as before. It looks my local path Should I reinstall pytest? |
These 2 options allow you to pass in regular expressions that determine whether files/directories are included or excluded in the recursive file search. Fixes pytest-dev#270
Originally reported by: Jason Lee (BitBucket: tutong, GitHub: tutong)
I copied the code in pytest usage.html#pytest-main-usage as followed:
into a file named mytest_1.py and then execute "python mytest_1.py"
I got the result:
and the expected is:
*** test run reporting finishing
py.test information :py.test version 2.3.4, imported from /usr/local/lib/python2.7/site-packages/pytest.pyc
python information:Python 2.7.3
system information:Linux 2.6.32.16-141.1.x86_64 #1 SMP Wed Jul 14 22:04:02 CST 2010 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: