Lines Matching refs:test_support
3 from test import test_support
23 marshal.dump(expected, file(test_support.TESTFN, "wb"))
24 got = marshal.load(file(test_support.TESTFN, "rb"))
27 os.unlink(test_support.TESTFN)
58 marshal.dump(b, file(test_support.TESTFN, "wb"))
59 new = marshal.load(file(test_support.TESTFN, "rb"))
74 marshal.dump(f, file(test_support.TESTFN, "wb"))
75 got = marshal.load(file(test_support.TESTFN, "rb"))
101 marshal.dump(f, file(test_support.TESTFN, "wb"))
102 got = marshal.load(file(test_support.TESTFN, "rb"))
105 marshal.dump(f, file(test_support.TESTFN, "wb"), 1)
106 got = marshal.load(file(test_support.TESTFN, "rb"))
109 os.unlink(test_support.TESTFN)
117 marshal.dump(s, file(test_support.TESTFN, "wb"))
118 new = marshal.load(file(test_support.TESTFN, "rb"))
121 os.unlink(test_support.TESTFN)
128 marshal.dump(s, file(test_support.TESTFN, "wb"))
129 new = marshal.load(file(test_support.TESTFN, "rb"))
132 os.unlink(test_support.TESTFN)
136 with test_support.check_py3k_warnings(("buffer.. not supported",
141 marshal.dump(b, file(test_support.TESTFN, "wb"))
142 new = marshal.load(file(test_support.TESTFN, "rb"))
144 os.unlink(test_support.TESTFN)
170 marshal.dump(self.d, file(test_support.TESTFN, "wb"))
171 new = marshal.load(file(test_support.TESTFN, "rb"))
173 os.unlink(test_support.TESTFN)
179 marshal.dump(lst, file(test_support.TESTFN, "wb"))
180 new = marshal.load(file(test_support.TESTFN, "rb"))
182 os.unlink(test_support.TESTFN)
188 marshal.dump(t, file(test_support.TESTFN, "wb"))
189 new = marshal.load(file(test_support.TESTFN, "rb"))
191 os.unlink(test_support.TESTFN)
200 marshal.dump(t, file(test_support.TESTFN, "wb"))
201 new = marshal.load(file(test_support.TESTFN, "rb"))
203 os.unlink(test_support.TESTFN)
300 f = open(test_support.TESTFN, 'wb')
301 self.addCleanup(test_support.unlink, test_support.TESTFN)
305 @test_support.precisionbigmemtest(size=LARGE_SIZE, memuse=1, dry_run=False)
309 @test_support.precisionbigmemtest(size=LARGE_SIZE,
314 @test_support.precisionbigmemtest(size=LARGE_SIZE,
319 @test_support.precisionbigmemtest(size=LARGE_SIZE,
324 @test_support.precisionbigmemtest(size=LARGE_SIZE,
330 @test_support.precisionbigmemtest(size=LARGE_SIZE,
336 @test_support.precisionbigmemtest(size=LARGE_SIZE, memuse=1, dry_run=False)
341 @test_support.cpython_only
347 _testcapi.pymarshal_write_long_to_file(0x12345678, test_support.TESTFN, v)
348 with open(test_support.TESTFN, 'rb') as f:
350 test_support.unlink(test_support.TESTFN)
356 _testcapi.pymarshal_write_object_to_file(obj, test_support.TESTFN, v)
357 with open(test_support.TESTFN, 'rb') as f:
359 test_support.unlink(test_support.TESTFN)
363 with open(test_support.TESTFN, 'wb') as f:
365 r, p = _testcapi.pymarshal_read_short_from_file(test_support.TESTFN)
366 test_support.unlink(test_support.TESTFN)
371 with open(test_support.TESTFN, 'wb') as f:
373 r, p = _testcapi.pymarshal_read_long_from_file(test_support.TESTFN)
374 test_support.unlink(test_support.TESTFN)
382 with open(test_support.TESTFN, 'wb') as f:
384 r, p = _testcapi.pymarshal_read_last_object_from_file(test_support.TESTFN)
385 test_support.unlink(test_support.TESTFN)
392 with open(test_support.TESTFN, 'wb') as f:
394 r, p = _testcapi.pymarshal_read_object_from_file(test_support.TESTFN)
395 test_support.unlink(test_support.TESTFN)
401 test_support.run_unittest(IntTestCase,