We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8773e7f commit 6ee8545Copy full SHA for 6ee8545
paths_cli/tests/compiling/test_root_compiler.py
@@ -149,6 +149,16 @@ def test_get_compiler_nonexisting(foo_compiler):
149
assert 'foo' in _COMPILERS
150
151
152
+def test_get_compiler_none():
153
+ # if trying to get the None compiler, the same None compiler should
154
+ # always be returned
155
+ with patch.dict(COMPILER_LOC, {}):
156
+ compiler1 = _get_compiler(None)
157
+ assert compiler1.label is None
158
+ compiler2 = _get_compiler(None)
159
+ assert compiler1 is compiler2
160
+
161
162
def test_get_compiler_nonstandard_name_multiple():
163
# regression test based on real issue -- there was an error where
164
# non-canonical names (e.g., names that involved hyphens instead of
0 commit comments