Debian Codegraph @

extra_tests/test_capi.py

raw symbols SCIP
1 import pytest, sys, subprocess
2
3
4 @pytest.mark.skipif(sys.implementation.name != 'pypy', reason='pypy only')
5 def test_get_hashed_dir():
6 import sys
7 from lib_pypy import _testcapi
8 # This should not compile _testcapi, so the output is empty
9 script = "import _testcapi; assert 'get_hashed_dir' not in dir(_testcapi)"
10 output = subprocess.check_output([sys.executable, '-c', script],
11 universal_newlines=True)
12 assert output == ''
13