MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_dir

Method test_dir

test/test_datapipe.py:223–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221 return "FakeFD"
222
223 def test_dir(self):
224 fd = TestStreamWrapper._FakeFD("")
225 wrap_fd = StreamWrapper(fd)
226
227 s = set(dir(wrap_fd))
228 for api in ['open', 'read', 'close']:
229 self.assertTrue(api in s)
230
231 @skipIfTorchDynamo
232 def test_api(self):

Callers

nothing calls this directly

Calls 1

StreamWrapperClass · 0.90

Tested by

no test coverage detected