Lines Matching refs:infile
96 infile = os_helper.TESTFN
97 with open(infile, "w", encoding="utf-8") as fp:
98 self.addCleanup(os.remove, infile)
100 return infile
103 infile = self._create_infile()
104 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
117 infile = self._create_infile(data)
118 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
125 infile = self._create_infile()
127 rc, out, err = assert_python_ok('-m', 'json.tool', infile, outfile)
136 infile = self._create_infile()
137 rc, out, err = assert_python_ok('-m', 'json.tool', infile, infile)
138 with open(infile, "r", encoding="utf-8") as fp:
157 infile = self._create_infile()
158 rc, out, err = assert_python_ok('-m', 'json.tool', '--sort-keys', infile)
202 infile = self._create_infile('{"key":"?"}')
205 assert_python_ok('-m', 'json.tool', '--no-ensure-ascii', infile, outfile)
213 infile = self._create_infile('{"key":"?"}')
216 assert_python_ok('-m', 'json.tool', infile, outfile)