-
Notifications
You must be signed in to change notification settings - Fork 136
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
Issues with using xmlrunner, AttributeError: 'XMLTestProgram' object has no attribute 'warnings' #190
Comments
Please note that this has been working on our setup till 15th March (last time we ran the test suite). Yesterday (20th March) started getting the error. |
The same here with latest version (2.4.0) under python2.7 on Windows. Needed to revert to 2.3.2
|
Thank you for the suggestion. We were on Fedora Linux when we encountered the issue. Reverting to 2.3.2 helped to unblock us. |
try master. there is a fix that hasn't been released yet |
Thanks @dnozay. Tried with v2.5.0 which includes the fix you mentioned and error has moved to another place:
|
@dnozay I tried the master as well and ran into the same issue. |
fixed in 2.5.1 |
We are using the following command to run some tests.
python -m xmlrunner discover -p "testBVT_*"
This results in the following error
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/site-packages/xmlrunner/main.py", line 19, in
XMLTestProgram(module=None)
File "/usr/lib/python2.7/site-packages/xmlrunner/runner.py", line 124, in init
super(XMLTestProgram, self).init(*args, **kwargs)
File "/usr/lib64/python2.7/unittest/main.py", line 95, in init
self.runTests()
File "/usr/lib/python2.7/site-packages/xmlrunner/runner.py", line 142, in runTests
warnings=self.warnings,
AttributeError: 'XMLTestProgram' object has no attribute 'warnings'
Could you please look into the issue.
The text was updated successfully, but these errors were encountered: