5.6.0: pytest errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
New
|
Undecided
|
Unassigned |
Bug Description
+ /usr/bin/python3 -Bm pytest -ra
=======
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-
collected 131 items
. F [ 0%]
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
=======
_______
cls = <class '_pytest.
reraise = (<class '_pytest.
@classmethod
def from_call(
cls,
func: "Callable[[], TResult]",
when: "Literal['collect', 'setup', 'call', 'teardown']",
reraise: Optional[
] = None,
) -> "CallInfo[
excinfo = None
start = timing.time()
try:
> result: Optional[TResult] = func()
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> lambda: ihook(item=item, **kwds), when=when, reraise=reraise
)
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.spec and self.spec.argnames:
)
if notincall:
)
> return self._hookexec(
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.
methods = [<HookImpl plugin_
kwargs = {'item': <CheckdocsItem project>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_
> return self._inner_
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_
methods = [<HookImpl plugin_
kwargs = {'item': <CheckdocsItem project>}
> self._inner_
methods,
kwargs,
)
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook_impls = [<HookImpl plugin_
caller_kwargs = {'item': <CheckdocsItem project>}, firstresult = False
def _multicall(
"""Execute a call into multiple python functions/methods and return the
result(s).
"""
results = []
excinfo = None
try: # run impl and wrapper setup functions in a loop
try:
for hook_impl in reversed(
except BaseException:
finally:
if firstresult: # first result hooks return a single value
else:
# run all wrapper post-yield blocks
for gen in reversed(
> return outcome.
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pluggy.
def get_result(self):
"""Get the result(s) for this hook call.
If the hook was marked as a ``firstresult`` only a single value
will be returned otherwise a list of results.
"""
if self._excinfo is None:
return self._result
else:
ex = self._excinfo
if _py3:
> raise ex[1].with_
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook_impls = [<HookImpl plugin_
caller_kwargs = {'item': <CheckdocsItem project>}, firstresult = False
def _multicall(
"""Execute a call into multiple python functions/methods and return the
result(s).
"""
results = []
excinfo = None
try: # run impl and wrapper setup functions in a loop
try:
for hook_impl in reversed(
> res = hook_impl.
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <CheckdocsItem project>
def pytest_
try:
del sys.last_type
del sys.last_value
del sys.last_traceback
except AttributeError:
pass
try:
except Exception as e:
# Store trace info to allow postmortem debugging
assert e.__traceback__ is not None
# Skip *this* frame
> raise e
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <CheckdocsItem project>
def pytest_
try:
del sys.last_type
del sys.last_value
del sys.last_traceback
except AttributeError:
pass
try:
> item.runtest()
/usr/lib/
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <CheckdocsItem project>
def runtest(self):
desc = self.get_
method_name = f"run_{
> getattr(self, method_name)(desc)
E AttributeError: 'CheckdocsItem' object has no attribute 'run_text_x_rst; charset=UTF_8'
/usr/lib/
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
req_string = self.url
AttributeError: 'ParseRequireme
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
traceback-1: {{{
Traceback (most recent call last):
File "/usr/lib/
self._setUp()
File "/home/
virtualenv.
AttributeError: module 'virtualenv' has no attribute 'cli_run'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
raise SetupError(details)
fixtures.
}}}
Traceback (most recent call last):
File "/usr/lib/
self._setUp()
File "/home/
virtualenv.
AttributeError: module 'virtualenv' has no attribute 'cli_run'
-------
Running git init .
STDOUT:
Initialized empty Git repository in /tmp/tmp_
STDERR:
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Running git config --global user.email <email address hidden>
STDOUT:
STDERR:
Running git config --global user.name OpenStack Developer
STDOUT:
STDERR:
Running git config --global user.signingkey <email address hidden>
STDOUT:
STDERR:
Running git add .
STDOUT:
STDERR:
Running git add /tmp/tmp_
STDOUT:
STDERR:
Running git commit -m test commit
STDOUT:
[master (root-commit) 8a7eb0b] test commit
4 files changed, 19 insertions(+)
create mode 100644 4
create mode 100644 requirements.txt
create mode 100644 setup.cfg
create mode 100644 setup.py
STDERR:
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
git.
File "/home/
for release, content in changelog:
File "/home/
for hash, tags, msg in changelog:
File "/home/
changelog = _run_git_
File "/home/
return _run_shell_command(
File "/home/
output = subprocess.
File "/usr/lib/
proc_info = self.get_
File "/home/
"stdout": BytesIO(
AttributeError: 'GitLogsTest' object has no attribute 'changelog'
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
os.
AttributeError: 'BuildSphinxTest' object has no attribute 'has_autodoc'
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
if self.has_opt:
AttributeError: 'BuildSphinxTest' object has no attribute 'has_opt'
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
if self.has_opt:
AttributeError: 'BuildSphinxTest' object has no attribute 'has_opt'
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
config = config_
AttributeError: 'TestExtrasRequ
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
config = config_
AttributeError: 'TestMapFieldsP
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
config = config_
AttributeError: 'TestKeywordsPa
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools.
pythonlogging:''
pythonlogging
Traceback (most recent call last):
File "/home/
config = config_
AttributeError: 'TestDataFilesP
=======
pbr/tests/
/home/
class TestRepo(
pbr/tests/
pbr/tests/
pbr/tests/
/home/
parser.
-- Docs: https:/
=======
SKIPPED [1] pbr/tests/
SKIPPED [1] pbr/tests/
SKIPPED [1] pbr/tests/
SKIPPED [1] pbr/tests/
SKIPPED [1] pbr/tests/
FAILED ::project - AttributeError: 'CheckdocsItem' object has no attribute 'run_text_x_rst; charset=UTF_8'
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
FAILED pbr/tests/
=======
Any update?
Just tested 5.8.1 and looks like issue still is not resolved. Additionally pytest shows many warnings
+ PYTHONPATH= /home/tkloczko/ rpmbuild/ BUILDROOT/ python- pbr-5.8. 1-2.fc35. x86_64/ usr/lib64/ python3. 8/site- packages: /home/tkloczko/ rpmbuild/ BUILDROOT/ python- pbr-5.8. 1-2.fc35. x86_64/ usr/lib/ python3. 8/site- packages ======= ======= ======= ======= ======= ======= ======= ======= ======= ===== test session starts ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ====== rpmbuild/ BUILD/pbr- 5.8.1
+ /usr/bin/pytest -ra
=======
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/
collected 129 items
pbr/tests/ test_commands. py .... [ 3%] test_core. py F..... [ 7%] test_files. py ....... [ 13%] test_hooks. py s. [ 14%] test_integratio n.py ssss [ 17%] test_packaging. py .....F. F..FFF. ...F... .....F. ....... ....... ....... FF... [ 59%] test_pbr_ json.py . [ 60%] test_setup. py s.FF.FF.. [ 67%] test_util. py .F.FF.F. [ 73%] test_version. py ....... ....... ....... ....... ... [ 97%] test_wsgi. py FFF [100%]
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
pbr/tests/
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==== FAILURES ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ==== _______ _______ _______ _______ _______ _______ _______ _______ ____ TestCore. test_console_ script_ develop _______ _______ _______ _______ _______ _______ _______ _______ _______ ____
_______
'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
NOTE: Incompatible Exception Representation, displaying natively:
testtools. testresult. real._StringExc eption: Empty attachments: :'pbr'
pythonlogging:''
pythonlogging
Traceback (most recent call last):
...