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

Method test_exception

caffe2/python/workspace_test.py:627–631  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

625 self.assertEqual(value, serde_blob.fetch())
626
627 def test_exception(self):
628 ws = workspace.C.Workspace()
629
630 with self.assertRaises(TypeError):
631 ws.create_net("...")
632
633
634class TestPredictor(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.80
create_netMethod · 0.45

Tested by

no test coverage detected