Skip to content
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

testing: allow to instantiate an empty AsyncTestCase #3374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bluetech
Copy link
Contributor

unittest.TestCase has a feature where it allows instantiating MyTestClass() with the default method name runTest even if a runTest method doesn't actually exist. This is documented in TestCase's docs under "Changed in version 3.2" (link).

Since version 8.2, pytest relies on this, and started breaking on Tornado's AsyncTestCase, see pytest-dev/pytest#12263.

Change AsyncTestCase to allow empty instatiation, by matching the upstream code.

`unittest.TestCase` has a feature where it allows instantiating
`MyTestClass()` with the default method name `runTest` even if a
`runTest` method doesn't actually exist. This is documented in
`TestCase`'s docs under "Changed in version 3.2"[0].

Since version 8.2, pytest relies on this, and started breaking on
Tornado's `AsyncTestCase`[1].

Change `AsyncTestCase` to allow empty instatiation, by matching the
upstream code.

[0] https://docs.python.org/3/library/unittest.html#unittest.TestCase
[1] pytest-dev/pytest#12263
MichaIng added a commit to motioneye-project/motioneye that referenced this pull request May 11, 2024
The motion package installs a motion systemd service, which can block camera devices and hence conflict with the motionEye-controlled motion processes.

We hence need to assure that this service is stopped and disabled, before we can start and enable out motioneye.service.

Additionally, Tornado python tests are ignored, until a related fix has been merged: tornadoweb/tornado#3374

Signed-off-by: MichaIng <[email protected]>
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.

None yet

1 participant