Lines Matching refs:strict
335 # gh-106242: Embedded nulls and non-strict fallback to abspath
337 ntpath.realpath(os_helper.TESTFN + "\0spam", strict=False))
342 # Bug #43757: raise FileNotFoundError in strict mode if we encounter
347 self.assertRaises(FileNotFoundError, ntpath.realpath, ABSTFN, strict=True)
348 self.assertRaises(FileNotFoundError, ntpath.realpath, ABSTFN + "2", strict=True)
350 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "\0spam", strict=True)
423 # Symlink loops in non-strict mode are non-deterministic as to which
470 # Symlink loops raise OSError in strict mode
480 self.assertRaises(OSError, ntpath.realpath, ABSTFN, strict=True)
484 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1", strict=True)
485 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "2", strict=True)
486 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1\\x", strict=True)
489 self.assertPathEqual(ntpath.realpath(ABSTFN + "1\\..", strict=True),
491 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "1\\..\\x", strict=True)
495 strict=True)
498 strict=True)
501 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "a", strict=True)
505 self.assertRaises(OSError, ntpath.realpath, ABSTFN + "c", strict=True)
509 strict=True)