"src/vscode:/vscode.git/clone" did not exist on "f4608c2227c85a3ab36aa1e11cbaec928e9b67c8"
Commit 8bc4ab06 authored by F-G Fernandez's avatar F-G Fernandez Committed by Francisco Massa
Browse files

test: Updated assert in test_hub (#1495)

Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
parent c00222cf
...@@ -44,7 +44,7 @@ class TestHub(unittest.TestCase): ...@@ -44,7 +44,7 @@ class TestHub(unittest.TestCase):
progress=False) progress=False)
self.assertEqual(sum_of_model_parameters(hub_model).item(), self.assertEqual(sum_of_model_parameters(hub_model).item(),
SUM_OF_PRETRAINED_RESNET18_PARAMS) SUM_OF_PRETRAINED_RESNET18_PARAMS)
assert os.path.exists(temp_dir + '/pytorch_vision_master') self.assertTrue(os.path.exists(temp_dir + '/pytorch_vision_master'))
shutil.rmtree(temp_dir + '/pytorch_vision_master') shutil.rmtree(temp_dir + '/pytorch_vision_master')
def test_list_entrypoints(self): def test_list_entrypoints(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment