diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-03-06 01:23:21 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2010-03-06 01:23:21 (GMT) |
commit | 7e48ff8e50a041e3f227ff096c0e31340864ab6c (patch) | |
tree | 1feca2b4bbce69e612478a47d77777eba21415b4 /Lib | |
parent | fbf50b8c7c6c1201f6060d0e01bc601c79e57e32 (diff) | |
download | cpython-7e48ff8e50a041e3f227ff096c0e31340864ab6c.zip cpython-7e48ff8e50a041e3f227ff096c0e31340864ab6c.tar.gz cpython-7e48ff8e50a041e3f227ff096c0e31340864ab6c.tar.bz2 |
simplified the fallback case
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/tests/test_build_ext.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 5dea4dd..867ba96 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -19,11 +19,10 @@ ALREADY_TESTED = False def _get_source_filename(): srcdir = sysconfig.get_config_var('srcdir') - xxmodule = os.path.join(srcdir, 'Modules', 'xxmodule.c') - if not os.path.exists(xxmodule): + if srcdir is None: # local fallback - xxmodule = os.path.join(os.path.dirname(__file__), 'xxmodule.c') - return xxmodule + return os.path.join(os.path.dirname(__file__), 'xxmodule.c') + return os.path.join(srcdir, 'Modules', 'xxmodule.c') class BuildExtTestCase(support.TempdirManager, support.LoggingSilencer, |