Skip to content

Commit

Permalink
Remove depricated logger.warn for logger.warning
Browse files Browse the repository at this point in the history
  • Loading branch information
labseven authored and Adam committed Sep 17, 2019
1 parent 78b7f05 commit 75eab53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion focstest.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def run_test(code: str, expected_out: str, file: str = None):
outs, errs = _run_ocaml_code(command)
matches = outs.split('# ')[1:] # TODO: check if this should change based on the presence of a file
if len(matches) != 3 and file is not None:
logger.warn("Unable to parse ocaml output, expected 2 matches, got {}".format(len(matches)))
logger.warning("Unable to parse ocaml output, expected 2 matches, got {}".format(len(matches)))
elif len(matches) != 2 and file is None:
logger.error("Unable to parse ocaml output, expected 1 match, got {} ".format(len(matches)))
else:
Expand Down

0 comments on commit 75eab53

Please sign in to comment.