Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2022

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