Lines Matching refs:infile
95 infile = os_helper.TESTFN
96 with open(infile, "w", encoding="utf-8") as fp:
97 self.addCleanup(os.remove, infile)
99 return infile
102 infile = self._create_infile()
103 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
116 infile = self._create_infile(data)
117 rc, out, err = assert_python_ok('-m', 'json.tool', infile)
124 infile = self._create_infile()
126 rc, out, err = assert_python_ok('-m', 'json.tool', infile, outfile)
135 infile = self._create_infile()
136 rc, out, err = assert_python_ok('-m', 'json.tool', infile, infile)
137 with open(infile, "r", encoding="utf-8") as fp:
156 infile = self._create_infile()
157 rc, out, err = assert_python_ok('-m', 'json.tool', '--sort-keys', infile)
201 infile = self._create_infile('{"key":""}')
204 assert_python_ok('-m', 'json.tool', '--no-ensure-ascii', infile, outfile)
212 infile = self._create_infile('{"key":""}')
215 assert_python_ok('-m', 'json.tool', infile, outfile)