mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
following Barry suggestion for test_build_ext (see #8107)
This commit is contained in:
parent
0e915b01d0
commit
a41d77969c
2 changed files with 4 additions and 380 deletions
|
@ -18,7 +18,10 @@ from test import test_support
|
|||
ALREADY_TESTED = False
|
||||
|
||||
def _get_source_filename():
|
||||
return os.path.join(os.path.dirname(__file__), 'xxmodule.c')
|
||||
srcdir = sysconfig.get_config_var('srcdir')
|
||||
if srcdir is None:
|
||||
return os.path.join(sysconfig.project_base, 'Modules', 'xxmodule.c')
|
||||
return os.path.join(srcdir, 'Modules', 'xxmodule.c')
|
||||
|
||||
class BuildExtTestCase(support.TempdirManager,
|
||||
support.LoggingSilencer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue