Lines Matching full:fspath
3214 self.assertEqual(os.fspath(entry), os.path.join(self.path, 'file.txt'))
3219 fspath = os.fspath(bytes_entry)
3220 self.assertIsInstance(fspath, bytes)
3221 self.assertEqual(fspath,
3371 fspath = staticmethod(os.fspath)
3375 self.assertEqual(b, self.fspath(b))
3379 self.assertEqual(s, self.fspath(s))
3385 self.assertEqual(p, self.fspath(pathlike))
3390 self.assertEqual('#feelthegil', self.fspath(_PathLike('#feelthegil')))
3397 self.assertRaises(TypeError, self.fspath, o)
3400 self.assertRaises(TypeError, self.fspath)
3404 self.assertRaises(TypeError, self.fspath, _PathLike(42))
3408 self.assertRaises(TypeError, self.fspath, c())
3410 self.assertRaises(ZeroDivisionError, self.fspath,
3418 """Explicitly test the pure Python implementation of os.fspath()."""
3420 fspath = staticmethod(os._fspath)