Lines Matching defs:fspath
4295 self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
4300 fspath = os.fspath(bytes_entry)
4301 self.assertIsInstance(fspath, bytes)
4302 self.assertEqual(fspath,
4413 self.assertEqual(os.fspath(entry), entry.name)
4495 fspath = staticmethod(os.fspath)
4499 self.assertEqual(b, self.fspath(b))
4503 self.assertEqual(s, self.fspath(s))
4509 self.assertEqual(p, self.fspath(pathlike))
4514 self.assertEqual('#feelthegil', self.fspath(FakePath('#feelthegil')))
4521 self.assertRaises(TypeError, self.fspath, o)
4524 self.assertRaises(TypeError, self.fspath)
4528 self.assertRaises(TypeError, self.fspath, FakePath(42))
4532 self.assertRaises(TypeError, self.fspath, c())
4534 self.assertRaises(ZeroDivisionError, self.fspath,
4586 """Explicitly test the pure Python implementation of os.fspath()."""
4588 fspath = staticmethod(os._fspath)