Skip to content

Commit 9a19d32

Browse files
committed
fix test
1 parent 2ceedba commit 9a19d32

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

appveyor.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ environment:
1111
DISTUTILS_USE_SDK: 1
1212
MSSdk: 1
1313
matrix:
14-
- PYTHON: "C:\\Python36"
15-
PYTHON_VERSION: "3.6"
16-
CPP: 14
17-
CONFIG: Release
18-
- PYTHON: "C:\\Python37"
19-
PYTHON_VERSION: "3.7"
14+
- PYTHON: "C:\\Python38"
15+
PYTHON_VERSION: "3.8"
2016
CPP: 14
2117
CONFIG: Release
2218
install:
@@ -27,7 +23,7 @@ install:
2723
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
2824
- "python --version"
2925
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
30-
- "python -m pip install --upgrade pip setuptools"
26+
- "python -m pip install --upgrade pip setuptools virtualenv"
3127
- "pip install pipenv"
3228

3329
build_script:

tests/test_point_to_plane.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def test_point_to_plane(self):
3131
r0[:3, :3] = r
3232
r1 = np.identity(4)
3333
r1[:3, :3] = self._tf.rot
34-
self.assertTrue(np.allclose(trans.euler_from_matrix(r0),
35-
trans.euler_from_matrix(r1), atol=5.0e-2, rtol=1.0e-2))
36-
self.assertTrue(np.allclose(t, self._tf.t, atol=5.0e-2, rtol=1.0e-3))
34+
self.assertTrue(np.allclose(r0 * r1.transpose(),
35+
np.identity(4), atol=5.0e-2, rtol=1.0e-2))
36+
self.assertTrue(np.allclose(t, self._tf.t, atol=5.0e-1, rtol=1.0e-2))
3737

3838
if __name__ == "__main__":
3939
unittest.main()

0 commit comments

Comments
 (0)