Skip to content

Issues with using xmlrunner, AttributeError: 'XMLTestProgram' object has no attribute 'warnings' #190

Closed
@srisuman

Description

@srisuman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions