Skip to content

Commit

Permalink
fix unittest syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jul 23, 2024
1 parent 85d6a86 commit 2db5bde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions python/eigenpy/windows_dll_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import contextlib
import os
import sys


def get_dll_paths():
Expand Down Expand Up @@ -59,7 +58,4 @@ def __exit__(self, *exc_details):


def build_directory_manager():
if sys.version_info >= (3, 8):
return DllDirectoryManager()
else:
return PathManager()
return DllDirectoryManager()
2 changes: 1 addition & 1 deletion unittest/python/test_user_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def test_cast(from_dtype, to_dtype):

v = user_type.CustomDouble(1)
a = np.array(v)
assert type(v) == a.dtype.type
assert type(v) is a.dtype.type

0 comments on commit 2db5bde

Please sign in to comment.