Skip to content

Commit

Permalink
tests: Fix p011_libcall_nested.py test
Browse files Browse the repository at this point in the history
Since the function name "json.encoder.JSONEncoder.encode" can be
different in other systems, we need to provide a fixup routine.

Fixed: namhyung#1717
Signed-off-by: Namhyung Kim <[email protected]>
Signed-off-by: Honggyu Kim <[email protected]>
  • Loading branch information
namhyung authored and honggyukim committed Jun 6, 2023
1 parent 751da28 commit 3f4a92b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/p011_libcall_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ def __init__(self):

def setup(self):
self.option = '--nest-libcall -N ^importlib -D 6'

def fixup(self, cflags, result):
return result.replace(".JSONEncoder", "")

0 comments on commit 3f4a92b

Please sign in to comment.