MCPcopy Create free account
hub / github.com/python/cpython / test_uninstantiable

Method test_uninstantiable

Lib/test/test_os/test_os.py:4816–4819  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4814 self.assertEqual(stat1, stat2)
4815
4816 def test_uninstantiable(self):
4817 scandir_iter = os.scandir(self.path)
4818 self.assertRaises(TypeError, type(scandir_iter))
4819 scandir_iter.close()
4820
4821 def test_unpickable(self):
4822 filename = self.create_file("file.txt")

Callers

nothing calls this directly

Calls 3

scandirMethod · 0.45
assertRaisesMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected