Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Fix fail test (#1896)

Dmytro Mishkin6a1332bc808c
diff --git a/test/augmentation/test_augmentation.py b/test/augmentation/test_augmentation.py
index 194920c4b..cbc4dab2d 100644
--- a/test/augmentation/test_augmentation.py
+++ b/test/augmentation/test_augmentation.py
@@ -355,7 +355,7 @@ class TestRandomEqualizeAlternative(CommonTests):
with pytest.raises(ValueError):
self._create_augmentation_from_params(p=1.0)(
- torch.ones((1, 3, 4, 5) * 200, device=self.device, dtype=self.dtype)
+ torch.ones((1, 3, 4, 5) * 3, device=self.device, dtype=self.dtype)
)
diff --git a/test/enhance/test_core.py b/test/enhance/test_core.py
index c64d9c3c9..f8c86abd7 100644
--- a/test/enhance/test_core.py
+++ b/test/enhance/test_core.py
@@ -56,7 +56,7 @@ class TestAddWeighted:
assert_close(TestAddWeighted.fcn(src1, alpha, src2, beta, gamma), src1 * alpha + src2 * beta + gamma)
@pytest.mark.skipif(
- torch_version_le(1, 11, 0), reason="`Union` type hint not supported in JIT with PyTorch <= 1.11.0"
+ torch_version_le(1, 13, 0), reason="`Union` type hint not supported in JIT with PyTorch <= 1.11.0"
)
def test_jit(self, device, dtype):
src1, src2, alpha, beta, gamma = self.get_input(device, dtype, size=3)