pypy/module/cpyext/test/test_version.py::test_pragma_version
def test_pragma_version():
from pypy.module.sys.version import CPYTHON_VERSION
rootdir = py.path.local(__file__).join('..', '..')
pyconfig_h = rootdir.join('PC', 'pyconfig.h')
version = '%d%d' % (CPYTHON_VERSION[0], CPYTHON_VERSION[1])
pragma = 'pragma comment(lib,"python%s.lib")' % version
> assert pragma in pyconfig_h.read()
E assert 'pragma comment(lib,"python312.lib")' in '#ifndef Py_CONFIG_H\n#define Py_CONFIG_H\n\n/* pyconfig.h. NOT Generated automatically by configure.\n\nThis is a ma...fine HAVE_LONG_LONG 1\n#define PY_FORMAT_LONG_LONG "ll"\n#define PY_FORMAT_SIZE_T "z"\n\n\n#endif /* !Py_CONFIG_H */\n'
E + where '#ifndef Py_CONFIG_H\n#define Py_CONFIG_H\n\n/* pyconfig.h. NOT Generated automatically by configure.\n\nThis is a ma...fine HAVE_LONG_LONG 1\n#define PY_FORMAT_LONG_LONG "ll"\n#define PY_FORMAT_SIZE_T "z"\n\n\n#endif /* !Py_CONFIG_H */\n' = <bound method LocalPath.read of local('/build_dir/own-linux-x86-64/build/pypy/module/cpyext/PC/pyconfig.h')>()
E + where <bound method LocalPath.read of local('/build_dir/own-linux-x86-64/build/pypy/module/cpyext/PC/pyconfig.h')> = local('/build_dir/own-linux-x86-64/build/pypy/module/cpyext/PC/pyconfig.h').read
module/cpyext/test/test_version.py:14: AssertionError
builder: own-linux-x86-64 build #10880+
test: pypy/module/cpyext/test/test_version.py::test_pragma_version