Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Unit-tests fail on windows #24

Open
jaytaylor opened this issue Jun 18, 2016 · 0 comments
Open

Unit-tests fail on windows #24

jaytaylor opened this issue Jun 18, 2016 · 0 comments

Comments

@jaytaylor
Copy link

I tested on Linux and they work fine.

But on windows the bitarray library throws an exception:

======================================================================
ERROR: test_serialization (pybloom.tests.Serialization)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\users\taylor\src\python-bloomfilter\pybloom\tests.py", line 92, in test_serialization
    filter.tofile(f)
  File "c:\users\taylor\src\python-bloomfilter\pybloom\pybloom.py", line 251, in tofile
    else self.bitarray.tofile(f))
TypeError: open file expected

----------------------------------------------------------------------
Ran 14 tests in 0.391s

FAILED (errors=1)

Even though the file is definitely open:

<open file '<fdopen>', mode 'w+b' at 0x0000000003291420>

I realize this isn't a bug in the pybloom library, but I am filing it here since the UT's do not pass on windows.

richard-rogers pushed a commit to whylabs/whylogs-bloom that referenced this issue Nov 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant