We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bbb898 commit b681e78Copy full SHA for b681e78
test/pyTest/testProperties.py
@@ -138,7 +138,7 @@ def testCheckFilePropertiesAsJson():
138
inputFile = av.InputFile( inputFileName )
139
140
import json
141
- # throw exception if it is not a valid JSON
142
- json.loads(inputFile.getProperties().allPropertiesAsJson())
143
-
144
+ propertiesAsJson = inputFile.getProperties().allPropertiesAsJson()
+ # json.loads method throws a ValueError if it is not a valid JSON.
+ # Windows fix: remove the offending characters before loading it.
+ json.loads(propertiesAsJson.replace('\r\n', ''))
0 commit comments