Skip some tests on PyPy

This commit is contained in:
JRoot Junior 2023-11-17 00:42:06 +02:00
parent 444ed91bbd
commit 2b36338ca2
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
2 changed files with 6 additions and 1 deletions

View file

@ -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(