mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-01-17 03:40:34 +08:00
lint
Summary: Fix recent flake complaints Reviewed By: MichaelRamamonjisoa Differential Revision: D51811912 fbshipit-source-id: 65183f5bc7058da910e4d5a63b2250ce8637f1cc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f74fc450e8
commit
83bacda8fb
@@ -324,17 +324,15 @@ class TestMeshes(TestCaseMixin, unittest.TestCase):
|
||||
]
|
||||
faces_list = mesh.faces_list()
|
||||
|
||||
with self.assertRaises(ValueError) as cm:
|
||||
with self.assertRaisesRegex(ValueError, "same device"):
|
||||
Meshes(verts=verts_list, faces=faces_list)
|
||||
self.assertTrue("same device" in cm.msg)
|
||||
|
||||
verts_padded = mesh.verts_padded() # on cpu
|
||||
verts_padded = verts_padded.to("cuda:0")
|
||||
faces_padded = mesh.faces_padded()
|
||||
|
||||
with self.assertRaises(ValueError) as cm:
|
||||
with self.assertRaisesRegex(ValueError, "same device"):
|
||||
Meshes(verts=verts_padded, faces=faces_padded)
|
||||
self.assertTrue("same device" in cm.msg)
|
||||
|
||||
def test_simple_random_meshes(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user