mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Skip some tests on PyPy
This commit is contained in:
parent
444ed91bbd
commit
2b36338ca2
2 changed files with 6 additions and 1 deletions
|
|
@ -166,11 +166,13 @@ class QuizScene(Scene, state="quiz"):
|
|||
is_correct = answer == quiz.correct_answer
|
||||
if is_correct:
|
||||
correct += 1
|
||||
icon = "✅"
|
||||
else:
|
||||
incorrect += 1
|
||||
icon = "❌"
|
||||
if answer is None:
|
||||
answer = "no answer"
|
||||
user_answers.append(f"{quiz.text} ({'✅' if is_correct else '❌'} {html.quote(answer)})")
|
||||
user_answers.append(f"{quiz.text} ({icon} {html.quote(answer)})")
|
||||
|
||||
content = as_list(
|
||||
as_section(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import inspect
|
||||
import platform
|
||||
from datetime import datetime
|
||||
from unittest.mock import ANY, AsyncMock, patch
|
||||
|
||||
|
|
@ -232,6 +233,7 @@ class TestActionContainer:
|
|||
|
||||
|
||||
class TestSceneHandlerWrapper:
|
||||
@pytest.mark.skipif("PyPy" in platform.python_implementation(), reason="Test skipped on PyPy.")
|
||||
async def test_scene_handler_wrapper_call(self):
|
||||
class MyScene(Scene):
|
||||
pass
|
||||
|
|
@ -263,6 +265,7 @@ class TestSceneHandlerWrapper:
|
|||
# Check whether result is correct
|
||||
assert result == handler_mock.return_value
|
||||
|
||||
@pytest.mark.skipif("PyPy" in platform.python_implementation(), reason="Test skipped on PyPy.")
|
||||
async def test_scene_handler_wrapper_call_with_after(self):
|
||||
class MyScene(Scene):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue