diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2021-11-14 17:41:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 17:41:08 -0500 |
commit | 5b75de07169ef13952a5ab48e0b8bc15f31d0c37 (patch) | |
tree | 13b02b20c66d6f5fca7905285ee609a5ad72acb6 /setuptools/_distutils/tests/test_unixccompiler.py | |
parent | 6fc5d3099898fc3d06bcf72f1f6607d02124d60f (diff) | |
parent | 5141c4210c2a63a3bb54f0f512e4116faedc8d63 (diff) | |
download | python-setuptools-git-debt/remove-legacy-version.tar.gz |
Merge branch 'main' into debt/remove-legacy-versiondebt/remove-legacy-version
Diffstat (limited to 'setuptools/_distutils/tests/test_unixccompiler.py')
-rw-r--r-- | setuptools/_distutils/tests/test_unixccompiler.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/setuptools/_distutils/tests/test_unixccompiler.py b/setuptools/_distutils/tests/test_unixccompiler.py index ee2fe99c..63c7dd37 100644 --- a/setuptools/_distutils/tests/test_unixccompiler.py +++ b/setuptools/_distutils/tests/test_unixccompiler.py @@ -232,6 +232,13 @@ class UnixCCompilerTestCase(unittest.TestCase): sysconfig.customize_compiler(self.cc) self.assertEqual(self.cc.linker_so[0], 'my_ld') + def test_has_function(self): + # Issue https://github.com/pypa/distutils/issues/64: + # ensure that setting output_dir does not raise + # FileNotFoundError: [Errno 2] No such file or directory: 'a.out' + self.cc.output_dir = 'scratch' + self.cc.has_function('abort', includes=['stdlib.h']) + def test_suite(): return unittest.makeSuite(UnixCCompilerTestCase) |