Skip to content

port test_local.LocalTest to pytest tests to allow use of loop fixture#6523

Merged
fjetter merged 2 commits intodask:mainfrom
graingert:use-the-loop-fixture-for-test-local
Jun 10, 2022
Merged

port test_local.LocalTest to pytest tests to allow use of loop fixture#6523
fjetter merged 2 commits intodask:mainfrom
graingert:use-the-loop-fixture-for-test-local

Conversation

@graingert
Copy link
Member

@graingert graingert commented Jun 7, 2022

refs: #6163

the LocalTest tests are based on ClusterTest and unittest.TestCase, these tests are outdated as they assume the first argument of the passed in Cluster is n_workers - however this is now name, and by being based on unittest they didn't allow convenient use of fixtures

self.client.close()
self.cluster.close()

@pytest.mark.xfail()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test failed because self.Cluster(2, made a LocalCluster(name=2, n_workers=nprocesses_nthreads()

@graingert graingert requested a review from crusaderky June 7, 2022 13:35
@github-actions
Copy link
Contributor

github-actions bot commented Jun 7, 2022

Unit Test Results

       15 files  ±0         15 suites  ±0   6h 2m 56s ⏱️ - 16m 12s
  2 854 tests ±0    2 771 ✔️ +2    82 💤 ±0  1  - 1 
21 145 runs   - 1  20 204 ✔️ +8  940 💤  - 7  1  - 1 

For more details on these failures, see this check.

Results for commit b2f3d2e. ± Comparison against base commit febd41d.

@fjetter fjetter merged commit 9231be8 into dask:main Jun 10, 2022
@graingert graingert deleted the use-the-loop-fixture-for-test-local branch June 14, 2022 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants