Allow marked tests to be skipped under Windows
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- operating-systems, testing
Direzione di ricerca
Inizia riproducendo l’esempio Windows fornito usando i marker skipif e forked, quindi esamina la issue 7327 di pytest collegata per l’interazione tra i marker. Il lavoro sarà considerato completato quando il comportamento scelto per i test forked non supportati su Windows sarà implementato e verificato rispetto allo snippet segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently, if the test is marked with forked, this plugin tries to run it in a forked subprocess regardless of the current env. Also, adding a conditional skip marker does not help and manifests itself as https://github.com/pytest-dev/pytest/issues/7327.
The following snippet still runs on Windows:
@pytest.mark.skipif(IS_WINDOWS, ...)
@pytest.mark.forked
def test():
...
The workaround that I currently use is:
@pytest.mark.skipif(IS_WINDOWS, ...)
def test():
...
if not IS_WINDOWS:
test = pytest.mark.forked(test)
This could be addressed in a few ways:
- Actually respect skip markers.
- Skip any tests marked with forked when the env is not supported.
- Run these tests but w/o trying to sandbox them.
I think I like 1+2 most.
- Lingua principale
- Python
- Stelle
- 83
- Fork
- 29
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pytest-dev/pytest-forked
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pytest-dev/pytest-forked#106 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
pytest-dev/pytest-forked#84 ·
-
Fork per subpath Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
pytest-dev/pytest-forked#94 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
pytest-dev/pytest-forked#88 · 12 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
pytest-dev/pytest-forked#87 · 1 reazione ·
Tutte le issue di pytest-dev/pytest-forked
Issue simili
-
agent-ready documentation needs-triage
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
instance instance add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
searxng/searx-instances#939 · 1 commento ·
-
area-deployment area-integrations triage:bot-seen
Difficoltà 2/5 Mezza giornata Idoneità per principianti 86/100