Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806474 - dev-python/pytest-tempdir-2019.10.12: removed whole git clone of parso
Summary: dev-python/pytest-tempdir-2019.10.12: removed whole git clone of parso
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-05 07:00 UTC by Michał Górny
Modified: 2021-08-05 07:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-05 07:00:08 UTC
There's something really wrong in pytest-tempdir logic.  It seems that if I clone a project into /tmp/foo and then run pytest, pytest-tempdir removes the whole clone (!).

$ cd /tmp
$ git clone https://github.com/davidhalter/parso
$ cd parso
$ pytest
Removing stale tempdir: /tmp/parso
========================================================= test session starts =========================================================
platform linux -- Python 3.10.0rc1, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
tempdir: /tmp/parso
rootdir: /tmp/parso, configfile: pytest.ini, testpaths: parso, test
plugins: tempdir-2019.10.12
collected 0 items                                                                                                                     

======================================================== no tests ran in 0.00s ========================================================
ERROR: file or directory not found: parso