Skip to content

Commit 95d8a22

Browse files
author
Vasileios Karakasis
authored
Merge branch 'master' into doc/warn-against-perf-patterns
2 parents 13abab8 + a27b7ca commit 95d8a22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reframe/utility/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,9 @@ def __repr__(self):
14731473
def __str__(self):
14741474
return str(self.__container)
14751475

1476+
def __rfm_json_encode__(self):
1477+
return self.__container
1478+
14761479

14771480
class MappingView(collections.abc.Mapping):
14781481
'''A read-only view of a mapping.
@@ -1535,3 +1538,6 @@ def __repr__(self):
15351538

15361539
def __str__(self):
15371540
return str(self.__mapping)
1541+
1542+
def __rfm_json_encode__(self):
1543+
return self.__mapping

0 commit comments

Comments
 (0)