Skip to content

Commit 2af95ec

Browse files
committed
Constants may now be tuples.
1 parent 1def919 commit 2af95ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/easyconfigparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def test_easyconfig_constants(self):
184184
for constant_name in constants:
185185
self.assertTrue(isinstance(constant_name, string_type), "Constant name %s is a string" % constant_name)
186186
val = constants[constant_name]
187-
self.assertTrue(isinstance(val, (string_type, dict)), "Constant value %s is a string or dict" % val)
187+
self.assertTrue(isinstance(val, (string_type, dict, tuple)), "Constant value %s is a string, dict or tuple" % val)
188188

189189
# check a couple of randomly picked constant values
190190
self.assertEqual(constants['SOURCE_TAR_GZ'], '%(name)s-%(version)s.tar.gz')

0 commit comments

Comments
 (0)