MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_uninstantiable

Method test_uninstantiable

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

Source from the content-addressed store, hash-verified

5089 self.assertEqual(stat1, stat2)
5090
5091 def test_uninstantiable(self):
5092 scandir_iter = os.scandir(self.path)
5093 self.assertRaises(TypeError, type(scandir_iter))
5094 scandir_iter.close()
5095
5096 def test_unpickable(self):
5097 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