Commit 0fa9d6e7 authored by Kirill Smelkov's avatar Kirill Smelkov

gpython: tests: Skip test_pymain_syspath on SlapOS

With buildout raw underlying python interpreter does not have access to
eggs with which gpython script was generated. See previous commit for
details.
parent 92bb5bcc
......@@ -211,6 +211,10 @@ def test_pymain():
# verify that pymain sets sys.path in exactly the same way as underlying python does.
@gpython_only
def test_pymain_syspath():
from gpython import _is_buildout_script
if _is_buildout_script(sys.executable):
pytest.xfail("with buildout raw underlying interpreter does not have " +
"access to installed eggs")
# check verifies that print_syspath output for gpython and underlying python is the same.
# if path0cwd2realpath=Y, expect realpath('') instead of '' in sys.path[0]
def check(argv, path0cwd2realpath=False, **kw):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment