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 14cc5e0Copy full SHA for 14cc5e0
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 because of the absolute path to filename.
+ json.loads(propertiesAsJson.replace('\\','\\\\'))
0 commit comments