INTERNALERROR when skipping a test if using ``--html=report.html`` (pytest 6.0.0)
See original GitHub issueINTERNALERROR> 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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
pytest Documentation - Read the Docs
There is no need to subclass anything, but make sure to prefix your class with Test otherwise the class will be skipped.
Read more >Not getting SKIPPED test-cases in cucumber html report
I'm using @skip explicitly to skip the test cases. I want to see those cases in html report. I couldn't find any resource...
Read more >pytest usage - manpages.ubuntu!
To run a specific test within a module: pytest test_mod.py::test_func Another example specifying a test method in the command line: pytest test_mod.py:: ...
Read more >pytest-html - Read the Docs
For example, passing ?visible=passed,skipped will show only those tests in the report that have outcome passed or skipped. Note that this match ...
Read more >How to use skip and xfail to deal with tests that cannot succeed
Here is an example of marking a test function to be skipped when run on an interpreter earlier than Python3.10: import sys @pytest.mark.skipif ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
PR up: https://github.com/pytest-dev/pytest/pull/7561
Thanks again for the report and easy reproducer. 👍
Thank you for releasing pytest
6.0.1
with the fix to this issue! ✅ 🚀 I set SeleniumBase v1.45.0 to usepytest==6.0.1
, and now everything works. (https://github.com/seleniumbase/SeleniumBase/releases/tag/v1.45.0) Thank you @nicoddemus and the rest of the pytest team!