3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/httpie/strip-venv.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
760 B
Diff
Raw Normal View History

2020-01-15 05:07:23 +00:00
diff --git a/tests/test_docs.py b/tests/test_docs.py
2021-02-08 10:34:19 +00:00
index 340e64d..a6b4dc9 100644
2020-01-15 05:07:23 +00:00
--- a/tests/test_docs.py
+++ b/tests/test_docs.py
2021-02-08 10:34:19 +00:00
@@ -42,15 +42,10 @@ assert filenames
2020-01-15 05:07:23 +00:00
# HACK: hardcoded paths, venv should be irrelevant, etc.
2021-02-08 10:34:19 +00:00
# TODO: simplify by using the Python API instead of a subprocess
# then we wontt need the paths.
2020-01-15 05:07:23 +00:00
-VENV_BIN = Path(__file__).parent.parent / 'venv/bin'
-VENV_PYTHON = VENV_BIN / 'python'
-VENV_RST2PSEUDOXML = VENV_BIN / 'rst2pseudoxml.py'
+VENV_PYTHON = 'python'
+VENV_RST2PSEUDOXML = 'rst2pseudoxml.py'
2021-02-08 10:34:19 +00:00
-@pytest.mark.skipif(
- not VENV_RST2PSEUDOXML.exists(),
- reason='docutils not installed',
-)
2020-01-15 05:07:23 +00:00
@pytest.mark.parametrize('filename', filenames)
def test_rst_file_syntax(filename):
p = subprocess.Popen(