Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 63aa6b6

Browse files
committedJan 24, 2023
Changed tests so that error message is not so ugly when student does nothing.
Closes: https://youtrack.jetbrains.com/issue/EDC-728
1 parent cb6ad3f commit 63aa6b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎Introduction/Comments/tests/test_task.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ def test_assignment_operator(self):
3030
expected_absent_line = "This line should not be printed!"
3131
actual_output = self.actualOutput.getvalue()
3232

33-
self.assertNotIn(expected_absent_line, actual_output, msg="The line, which says it should not be printed, "
34-
"should, in fact, not be printed. ")
33+
if expected_absent_line in actual_output:
34+
self.fail(msg="The line, which says it should not be printed, "
35+
"should, in fact, not be printed.")
3536

3637
def test_output_len(self):
3738
expected_out_len = 31

0 commit comments

Comments
 (0)
Please sign in to comment.