Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
neka-nat committed Aug 31, 2020
1 parent 2ceedba commit 0ecbc70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 3 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ environment:
DISTUTILS_USE_SDK: 1
MSSdk: 1
matrix:
- PYTHON: "C:\\Python36"
PYTHON_VERSION: "3.6"
CPP: 14
CONFIG: Release
- PYTHON: "C:\\Python37"
PYTHON_VERSION: "3.7"
- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8"
CPP: 14
CONFIG: Release
install:
Expand All @@ -27,7 +23,7 @@ install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "python -m pip install --upgrade pip setuptools"
- "python -m pip install --upgrade pip setuptools virtualenv"
- "pip install pipenv"

build_script:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def build_extensions(self):
if has_flag(self.compiler, '-fvisibility=hidden'):
opts.append('-fvisibility=hidden')
elif ct == 'msvc':
opts.append('/DVERSION_INFO=\\"%s\\"' % self.distribution.get_version())
opts.append('/DVERSION_INFO=\"%s\"' % self.distribution.get_version())
for ext in self.extensions:
ext.extra_compile_args = opts
build_ext.build_extensions(self)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_point_to_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def test_point_to_plane(self):
r0[:3, :3] = r
r1 = np.identity(4)
r1[:3, :3] = self._tf.rot
self.assertTrue(np.allclose(trans.euler_from_matrix(r0),
trans.euler_from_matrix(r1), atol=5.0e-2, rtol=1.0e-2))
self.assertTrue(np.allclose(t, self._tf.t, atol=5.0e-2, rtol=1.0e-3))
self.assertTrue(np.allclose(r0 * r1.transpose(),
np.identity(4), atol=5.0e-2, rtol=1.0e-2))
self.assertTrue(np.allclose(t, self._tf.t, atol=5.0e-1, rtol=1.0e-2))

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

0 comments on commit 0ecbc70

Please sign in to comment.