Debian Codegraph @

pypy/module/sys/test/apptest_initpath.py

raw symbols SCIP
1 # spaceconfig = {"usemodules":["sys"]}
2
3 def test_pypy_find_executable():
4 # issue #4003
5 import sys
6
7 executable = sys.pypy_find_executable('*')
8 if sys.platform == 'win32':
9 assert executable.endswith('.exe')
10
11 fake_executable = r'C:\Windows\System32\cmd.exe' # should exist always
12 assert executable == sys.pypy_find_executable(fake_executable)
13 else:
14 assert executable == ''