Skip to content

Commit 55ccc6a

Browse files
committed
Add a regression test.
1 parent 90bc1cf commit 55ccc6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

distutils/compilers/C/base.py

+3
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ def _check_macro_definition(self, defn):
236236
def _is_valid_macro(name, value=None):
237237
"""
238238
A valid macro is a ``name : str`` and a ``value : str | None``.
239+
240+
>>> Compiler._is_valid_macro('foo', None)
241+
True
239242
"""
240243
return isinstance(name, str) and isinstance(value, (str, type(None)))
241244

0 commit comments

Comments
 (0)