01-fix-tests.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- contrib/python/click/py3/tests/test_arguments.py (index)
  2. +++ contrib/python/click/py3/tests/test_arguments.py (working tree)
  3. @@ -79,2 +79,3 @@ def test_nargs_err(runner):
  4. +@pytest.mark.skip(reason="Can't monkeypatch sys.stdin.encoding in Arcadia Python")
  5. def test_bytes_args(runner, monkeypatch):
  6. --- contrib/python/click/py3/tests/test_imports.py (index)
  7. +++ contrib/python/click/py3/tests/test_imports.py (working tree)
  8. @@ -1,3 +1,4 @@
  9. +import os
  10. import json
  11. import subprocess
  12. import sys
  13. @@ -55,8 +56,10 @@ if WIN:
  14. def test_light_imports():
  15. + env = os.environ.copy()
  16. + env["Y_PYTHON_ENTRY_POINT"] = ":main"
  17. c = subprocess.Popen(
  18. - [sys.executable, "-"], stdin=subprocess.PIPE, stdout=subprocess.PIPE
  19. + [sys.executable, "-"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, env=env,
  20. )
  21. rv = c.communicate(IMPORT_TEST)[0]
  22. rv = rv.decode("utf-8")
  23. --- contrib/python/click/py3/tests/test_termui.py (index)
  24. +++ contrib/python/click/py3/tests/test_termui.py (working tree)
  25. @@ -220,6 +220,7 @@ def test_choices_list_in_prompt(runner, monkeypatch):
  26. assert "(none, day, week, month)" not in result.output
  27. +@pytest.mark.skip
  28. @pytest.mark.parametrize(
  29. "file_kwargs", [{"mode": "rt"}, {"mode": "rb"}, {"lazy": True}]
  30. )
  31. --- contrib/python/click/py3/tests/test_utils.py (index)
  32. +++ contrib/python/click/py3/tests/test_utils.py (working tree)
  33. @@ -460,2 +460,2 @@ def test_expand_args(monkeypatch):
  34. - assert "pyproject.toml" in click.utils._expand_args(["*.toml"])
  35. - assert os.path.join("docs", "conf.py") in click.utils._expand_args(["**/conf.py"])
  36. + #assert "pyproject.toml" in click.utils._expand_args(["*.toml"])
  37. + #assert os.path.join("docs", "conf.py") in click.utils._expand_args(["**/conf.py"])