Skip to content

Commit

Permalink
Fix mypy heisenfailure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jan 29, 2025
1 parent dc8378e commit 27bff2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/reader_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,6 @@ def test_closed_metadata(self) -> None:
self.assertIsNotNone(metadata, "pure Python implementation returns value")

if os.name != "nt":

def test_multiprocessing(self):
self._check_concurrency(self.mp.Process)

Expand All @@ -543,6 +542,7 @@ def lookup(pipe) -> None:
except:
pipe.send(0)
finally:
# type: ignore[attr-defined]
if worker_class is self.mp.Process:
reader.close()
pipe.close()
Expand Down

0 comments on commit 27bff2a

Please sign in to comment.