Skip to content

Commit

Permalink
tests: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Jan 1, 2025
1 parent 0906eb4 commit d568845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ __pycache__
*.egg-info

.mypy_cache
*.pyclibcache
*.pyclibcache

version.py
1 change: 1 addition & 0 deletions tests/test_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def test_accessing_library_by_path(self):
assert library._lib_

def test_accessing_library_by_object(self):
CLibrary.libs.clear()
lib = ctypes.CDLL(_ctypes_test.__file__)
library = CLibrary(lib, ["ctypes_test.h"])
assert library._lib_ is lib
Expand Down

0 comments on commit d568845

Please sign in to comment.