Skip to content

Conversation

deronnax
Copy link
Contributor

@deronnax deronnax commented Sep 4, 2025

Fixes #2181. A draft, but pretty close to its final form. ChannelsLiveServerTestCase has been modified to closely model Django's LiveServerTestCase.
I did not delete DaphneProcess, we probably can (should?)
To keep the compatibility with python <3.9, I had to copy django's own backport of unittest's 3.11 enterClassContext done in django/django@ed4f837, because it's available only to Django >= 5.11

@deronnax deronnax force-pushed the migrate-liveservertestcase-to-thread branch from c6da185 to 446be96 Compare September 4, 2025 07:53
…ds (fixes django#2181)

It was previously using processes, but it was causing errors when tests were ran with
'--parallel', as it was a daemon process and daemon processes can't be spawned when
already in a subprocesses.
@deronnax deronnax force-pushed the migrate-liveservertestcase-to-thread branch 3 times, most recently from f758a3a to 2a600b0 Compare September 4, 2025 09:58
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.

ChannelsLiveServerTestCase can't be run in parallel
1 participant