• Home
  • Raw
  • Download

Lines Matching refs:test_support

3 from test import test_support
6 posix = test_support.import_module('posix')
22 test_support.TESTFN + '-dummy-symlink')
31 fp = open(test_support.TESTFN, 'w+')
33 self.teardown_files = [ test_support.TESTFN ]
139 fp = open(test_support.TESTFN)
148 fp = open(test_support.TESTFN, 'w+')
160 fp = open(test_support.TESTFN)
177 fp1 = open(test_support.TESTFN)
178 fp2 = open(test_support.TESTFN)
186 fd = os.open(test_support.TESTFN, os.O_RDONLY)
214 fd = os.open(test_support.TESTFN, os.O_RDONLY)
221 fd = os.open(test_support.TESTFN,
223 self.assertRaises(OSError, os.open, test_support.TESTFN,
228 fd = os.open(test_support.TESTFN,
230 self.assertRaises(OSError, os.open, test_support.TESTFN,
237 fd1 = os.open(test_support.TESTFN,
239 fd2 = os.open(test_support.TESTFN,
245 fd = os.open(test_support.TESTFN,
247 self.assertRaises(OSError, os.open, test_support.TESTFN,
254 fp = open(test_support.TESTFN)
263 self.assertTrue(posix.stat(test_support.TESTFN))
268 st = posix.stat(test_support.TESTFN)
365 os.unlink(test_support.TESTFN)
366 self.assertRaises(OSError, posix.chown, test_support.TESTFN, -1, -1)
369 open(test_support.TESTFN, 'w').close()
370 self._test_all_chown_common(posix.chown, test_support.TESTFN,
375 os.unlink(test_support.TESTFN)
378 test_file = open(test_support.TESTFN, 'w')
388 os.unlink(test_support.TESTFN)
390 os.symlink(_DUMMY_SYMLINK, test_support.TESTFN)
391 self._test_all_chown_common(posix.lchown, test_support.TESTFN,
397 self.assertRaises(OSError, posix.chdir, test_support.TESTFN)
401 self.assertIn(test_support.TESTFN, posix.lsdir(os.curdir))
405 self.assertTrue(posix.access(test_support.TESTFN, os.R_OK))
444 posix.utime(test_support.TESTFN, None)
445 self.assertRaises(TypeError, posix.utime, test_support.TESTFN, (None, None))
446 self.assertRaises(TypeError, posix.utime, test_support.TESTFN, (now, None))
447 self.assertRaises(TypeError, posix.utime, test_support.TESTFN, (None, now))
448 posix.utime(test_support.TESTFN, (int(now), int(now)))
449 posix.utime(test_support.TESTFN, (now, now))
476 self._test_chflags_regular_file(posix.chflags, test_support.TESTFN)
480 self._test_chflags_regular_file(posix.lchflags, test_support.TESTFN)
484 testfn_st = os.stat(test_support.TESTFN)
488 os.symlink(test_support.TESTFN, _DUMMY_SYMLINK)
503 new_testfn_st = os.stat(test_support.TESTFN)
526 base_path = os.path.abspath(test_support.TESTFN) + '.getcwd'
594 @test_support.requires_unicode
596 fn = test_support.TESTFN_UNICODE
598 fn.encode(test_support.TESTFN_ENCODING)
602 self.addCleanup(test_support.unlink, fn)
603 test_support.unlink(fn)
618 fn = test_support.TESTFN
620 self.addCleanup(test_support.unlink, fn)
621 test_support.unlink(fn)
673 test_support.run_unittest(PosixTester, PosixGroupsTester)