Skip to content

INTERNALERROR when skipping a test if using --html=report.html (pytest 6.0.0) #7559

Closed
@mdmintz

Description

@mdmintz

INTERNALERROR> AttributeError: 'tuple' object has no attribute 'rsplit'

Here's the file I was running with pytest: (skip_test.py)

import pytest

class TestClass():
    def test_skip(self):
        pytest.skip()

The run command (environment is a Bash shell on a MacBook Pro running macOS Mojave):

pytest skip_test.py --html=report.html
=========================== test session starts ===========================
platform darwin -- Python 3.7.0, pytest-6.0.0, py-1.9.0, pluggy-0.13.1
rootdir: /Users/michael/github/SeleniumBase, configfile: pytest.ini
plugins: html-2.0.1, rerunfailures-9.0, metadata-1.10.0, cov-2.10.0, xdist-1.34.0, ordering-0.6, allure-pytest-2.8.17, forked-1.3.0

INTERNALERROR> Traceback (most recent call last):
...
INTERNALERROR> AttributeError: 'tuple' object has no attribute 'rsplit'
=========================== 1 skipped in 0.03s ============================

Here's the pip list:

allure-pytest         2.8.17
allure-python-commons 2.8.17
apipkg                1.5
appnope               0.1.0
attrs                 19.3.0
backcall              0.2.0
beautifulsoup4        4.9.1
boto                  2.49.0
brython               3.8.9
certifi               2020.6.20
cffi                  1.14.1
chardet               3.0.4
colorama              0.4.3
commonmark            0.9.1
coverage              5.2.1
cryptography          3.0
decorator             4.4.2
execnet               1.7.1
flake8                3.8.3
idna                  2.10
importlib-metadata    1.7.0
iniconfig             1.0.0
ipdb                  0.13.3
ipython               7.16.1
ipython-genutils      0.2.0
jedi                  0.17.2
mccabe                0.6.1
more-itertools        8.4.0
nose                  1.3.7
packaging             20.4
parameterized         0.7.4
parso                 0.7.1
pdfminer.six          20200726
pexpect               4.8.0
pickleshare           0.7.5
pip                   20.1.1
pluggy                0.13.1
pprintpp              0.4.0
prompt-toolkit        3.0.5
ptyprocess            0.6.0
py                    1.9.0
pycodestyle           2.6.0
pycparser             2.20
pyflakes              2.2.0
Pygments              2.6.1
PyMySQL               0.10.0
pyOpenSSL             19.1.0
pyotp                 2.3.0
pyparsing             2.4.7
pytest                6.0.0
pytest-cov            2.10.0
pytest-forked         1.3.0
pytest-html           2.0.1
pytest-metadata       1.10.0
pytest-ordering       0.6
pytest-rerunfailures  9.0
pytest-xdist          1.34.0
requests              2.24.0
rich                  4.2.0
selenium              3.141.0
setuptools            49.2.0
setuptools-scm        4.1.2
six                   1.15.0
sortedcontainers      2.2.2
soupsieve             2.0.1
toml                  0.10.1
traitlets             4.3.3
typing-extensions     3.7.4.2
urllib3               1.25.10
wcwidth               0.2.5
wheel                 0.34.2
zipp                  3.1.0

CC @nicoddemus

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: reportingrelated to terminal output and user-facing messages and errorstype: regressionindicates a problem that was introduced in a release which was working previously

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions