1111from pdl .pdl_interpreter import PDLRuntimeError
1212from pdl .pdl_parser import PDLParseError
1313
14- UPDATE_RESULTS = True
14+ UPDATE_RESULTS = False
1515
1616TO_SKIP = {
1717 str (name )
@@ -174,7 +174,7 @@ def test_valid_programs(capsys: CaptureFixture[str], monkeypatch: MonkeyPatch) -
174174 wrong_result = False
175175 if wrong_result :
176176 if UPDATE_RESULTS :
177- result_file_name_0 = pdl_file_name .stem + ".5 .result"
177+ result_file_name_0 = pdl_file_name .stem + ".6 .result"
178178 result_dir_name .mkdir (parents = True , exist_ok = True )
179179 with open (
180180 result_dir_name / result_file_name_0 , "w" , encoding = "utf-8"
@@ -192,13 +192,17 @@ def test_valid_programs(capsys: CaptureFixture[str], monkeypatch: MonkeyPatch) -
192192 # Parse errors
193193 expected_parse_error = set (str (p ) for p in EXPECTED_PARSE_ERROR )
194194 unexpected_parse_error = sorted (list (actual_parse_error - expected_parse_error ))
195- assert len (unexpected_parse_error ) == 0 , f"Unexpected parse error: { unexpected_parse_error } "
195+ assert (
196+ len (unexpected_parse_error ) == 0
197+ ), f"Unexpected parse error: { unexpected_parse_error } "
196198 # Runtime errors
197199 expected_runtime_error = set (str (p ) for p in EXPECTED_RUNTIME_ERROR )
198200 unexpected_runtime_error = sorted (
199201 list (actual_runtime_error - expected_runtime_error )
200202 )
201- assert len (unexpected_runtime_error ) == 0 , f"Unexpected runtime error: { unexpected_runtime_error } "
203+ assert (
204+ len (unexpected_runtime_error ) == 0
205+ ), f"Unexpected runtime error: { unexpected_runtime_error } "
202206 # Unexpected valid
203207 unexpected_valid = sorted (
204208 list (
0 commit comments