Open graingert opened 4 years ago
of particular concern is ("/bacon/../../", u"//bacon/../../")
-> tests/] PASSED
this also happens on pytest==4.6.5
FYI you can syntax-highlight code blocks.
Not sure what's happening here but I agree it's not good!
FYI you can syntax-highlight code blocks.
I know but GitHub bash syntax highlighting is not smart enough to detect cat
and file extensions
if you use
```console
$ foo
bar
it will highlight as
```console
$ foo
bar
@graingert Not sure what the problem here is, but it looks like this for me, i.e. the params are joined using "-" (which appears to not be the case for you I guess?):
============================= test session starts ==============================
platform linux -- Python 3.8.1, pytest-5.3.3.dev46+g83ba709c4.d20200112, py-1.8.1, pluggy-0.13.2.dev5+g76838b1 -- …/Vcs/pytest/.venv/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('…/Vcs/pytest/.hypothesis/examples')
rootdir: …/Vcs/pytest, inifile: tox.ini
plugins: hypothesis-5.1.2
collecting ... collected 3 items
t/t_param.py::test_eggs[/bacon/../-//bacon/../] PASSED [ 33%]
t/t_param.py::test_eggs[/bacon/../../-//bacon/../../] PASSED [ 66%]
t/t_param.py::test_eggs[/bacon//-//bacon//] PASSED [100%]
============================== 3 passed in 0.03s ===============================
You have
cat tests/test_toast.py
and
pytest -vvv tests/test_eggs.py
Are symlinks involved maybe?
I can reproduce it after touch tests/pytest.ini
/ touch t/pytest.ini
.. :+1:
@blueyed reproduction as xfail test here: https://github.com/pytest-dev/pytest/pull/6394
pip list
from the virtual environment you are using