Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pythonwhat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "2.24.3"
__version__ = "2.24.4"

from .test_exercise import test_exercise, allow_errors
4 changes: 2 additions & 2 deletions pythonwhat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
def format_code(text):
mode = black.FileMode()
try:
return black.format_file_contents(text, fast=True, mode=mode)
except (black.NothingChanged, black.InvalidInput, black.CannotSplit):
return black.format_file_contents(text, fast=True, mode=mode).rstrip()
except (black.NothingChanged, black.InvalidInput, IndentationError):
return text


Expand Down
2 changes: 0 additions & 2 deletions tests/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ def car_wash(env):

# Get the current simulation time and clock-in the process time
yield env.timeout(5)

</code></pre>

, but got
Expand All @@ -186,7 +185,6 @@ def car_wash(env):

# Get the current simulation time and clock-in the process time
yield env.timeout(5)

</code></pre>"""
assert sct_payload["message"] == incorrect_msg

Expand Down