Skip to content

Commit 71cffcb

Browse files
committed
Extend the test to compile a second time after setting include dirs again.
1 parent 530b119 commit 71cffcb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

distutils/tests/test_ccompiler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ def test_set_include_dirs(c_file):
4949
python = sysconfig.get_paths()['include']
5050
compiler.set_include_dirs([python])
5151
compiler.compile(_make_strs([c_file]))
52+
53+
# do it again, setting include dirs after any initialization
54+
compiler.set_include_dirs([python])
55+
compiler.compile(_make_strs([c_file]))

0 commit comments

Comments
 (0)