MCPcopy Index your code
hub / github.com/pytorch/pytorch / testChildClasses

Method testChildClasses

caffe2/python/context_test.py:64–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 self.assertEqual(MyContext.current(), ctx1)
63
64 def testChildClasses(self):
65 with ChildMyContext() as ctx:
66 self.assertEqual(ChildMyContext.current(), ctx)
67 self.assertEqual(MyContext.current(), ctx)

Callers

nothing calls this directly

Calls 3

ChildMyContextClass · 0.85
currentMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected