File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ Note that the log for version before v0.1.1 may not be in the mentioned format.
9
9
10
10
## [ Unreleased]
11
11
12
+ ## v0.1.2a2 - 2024-10-01
13
+
14
+ ### Changed
15
+
16
+ - Flush stdout in the grade command.
17
+
12
18
## v0.1.2a1 - 2024-10-01
13
19
14
20
### Added
Original file line number Diff line number Diff line change 1
- 0.1.2a1
1
+ 0.1.2a2
Original file line number Diff line number Diff line change 8
8
import click
9
9
10
10
from ..common import MinimalistTestResult , MinimalistTestRunner
11
- from ..util import FindProblemList , get_problem_total_points , load_problems_metadata
11
+ from ..util import (FindProblemList , get_problem_total_points ,
12
+ load_problems_metadata )
12
13
from .dev import dev
13
14
from .internal import internal
14
15
@@ -96,7 +97,7 @@ def grade_command(path: str | Path) -> None:
96
97
current_sys_path = copy .copy (sys .path )
97
98
test_programs = []
98
99
for idx , problem_name in enumerate (problem_names , start = 1 ):
99
- print (f"{ idx } - Grading { problem_name } " )
100
+ print (f"{ idx } - Grading { problem_name } " , flush = True )
100
101
101
102
try :
102
103
os .chdir (problem_name )
@@ -120,7 +121,7 @@ def grade_command(path: str | Path) -> None:
120
121
# every problem.
121
122
del sys .modules ["scripts.grade" ]
122
123
123
- print ("\n \n " )
124
+ print ("\n \n " , flush = True )
124
125
125
126
# Summary.
126
127
print ("==== Summary ====" )
You can’t perform that action at this time.
0 commit comments