Python: Allow printing PostUpdateNode in ConceptsTest.qll

See how this works in `test_json.py`
This commit is contained in:
Rasmus Wriedt Larsen
2021-05-11 14:59:35 +02:00
parent 9dbb364cca
commit 61ad5d0673
3 changed files with 35 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ def test():
# load/dump with file-like
tainted_filelike = StringIO()
json.dump(ts, tainted_filelike) # $ encodeFormat=JSON encodeInput=ts
json.dump(ts, tainted_filelike) # $ encodeOutput=[post]tainted_filelike encodeFormat=JSON encodeInput=ts
tainted_filelike.seek(0)
ensure_tainted(
@@ -27,7 +27,7 @@ def test():
# load/dump with file-like using keyword-args
tainted_filelike = StringIO()
json.dump(obj=ts, fp=tainted_filelike) # $ encodeFormat=JSON encodeInput=ts
json.dump(obj=ts, fp=tainted_filelike) # $ encodeOutput=[post]tainted_filelike encodeFormat=JSON encodeInput=ts
tainted_filelike.seek(0)
ensure_tainted(