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 b77d3e8 commit eb93cd5Copy full SHA for eb93cd5
SCons/EnvironmentTests.py
@@ -3177,11 +3177,12 @@ def test_NoClean(self) -> None:
3177
def test_Dump(self) -> None:
3178
"""Test the Dump() method"""
3179
3180
- env = self.TestEnvironment(FOO = 'foo')
+ env = self.TestEnvironment(FOO='foo', FOOFLAGS=CLVar('--bar --baz'))
3181
assert env.Dump('FOO') == "'foo'", env.Dump('FOO')
3182
assert len(env.Dump()) > 200, env.Dump() # no args version
3183
3184
assert env.Dump('FOO', 'json') == '"foo"' # JSON key version
3185
+ self.assertEqual(env.Dump('FOOFLAGS', 'json'), '"<<non-serializable: CLVar>>"')
3186
import json
3187
env_dict = json.loads(env.Dump(format = 'json'))
3188
assert env_dict['FOO'] == 'foo' # full JSON version
0 commit comments