Skip to content

Commit 8545231

Browse files
committed
test_extensions_templates: Extension patches are now dicts
pick out the path for the assert check.
1 parent 13eed4f commit 8545231

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/framework/easyconfig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,10 @@ def test_extensions_templates(self):
457457
# check whether template values were resolved correctly in Extension instances that were created/used
458458
toy_ext = eb.ext_instances[0]
459459
self.assertEqual(os.path.basename(toy_ext.src), 'toy-0.0-py3-test.tar.gz')
460-
self.assertEqual(toy_ext.patches, [os.path.join(self.test_prefix, toy_patch_fn)])
460+
patches = []
461+
for patch in toy_ext.patches:
462+
patches.append(patch['path'])
463+
self.assertEqual(patches, [os.path.join(self.test_prefix, toy_patch_fn)])
461464
expected = {
462465
'patches': ['toy-0.0_fix-silly-typo-in-printf-statement.patch'],
463466
'prebuildopts': 'gcc -O2 toy.c -o toy-0.0 && mv toy-0.0 toy #',

0 commit comments

Comments
 (0)