Skip to content

Commit

Permalink
Fix integration tests on macOS/Windows (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Mar 19, 2022
1 parent a27389f commit 26f42b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/samplers/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def test_len(self, sampler: CustomBatchGeoSampler) -> None:
@pytest.mark.parametrize("num_workers", [0, 1, 2])
def test_dataloader(self, sampler: CustomBatchGeoSampler, num_workers: int) -> None:
ds = CustomGeoDataset()
ds.index.insert(0, (0, 100, 200, 300, 400, 500))
dl = DataLoader(
ds, batch_sampler=sampler, num_workers=num_workers, collate_fn=stack_samples
)
Expand Down
1 change: 1 addition & 0 deletions tests/samplers/test_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def test_abstract(self) -> None:
@pytest.mark.parametrize("num_workers", [0, 1, 2])
def test_dataloader(self, sampler: CustomGeoSampler, num_workers: int) -> None:
ds = CustomGeoDataset()
ds.index.insert(0, (0, 100, 200, 300, 400, 500))
dl = DataLoader(
ds, sampler=sampler, num_workers=num_workers, collate_fn=stack_samples
)
Expand Down

0 comments on commit 26f42b9

Please sign in to comment.