Fixed JSON tests on wide build when ran from *.pyc files (issue #11489).