Skip to content

Commit

Permalink
remove err from default exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchristina committed Nov 22, 2023
1 parent 5aacc3f commit 3424e13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_problem_bank_helpers_other_functionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_backticks_to_code_simple_invalid_params():
case = {"params": {"part1": 1, "part2": {"ans1": {1}}}}
try:
pbh.backticks_to_code_tags(case)
except Exception as exc:
assert False, f"Raised an exception {exc}"
except:
assert False, f"Raised an exception"

def test_backticks_to_code_skip_invalid_params():
"""Test rounding an int with specified sigfigs"""
Expand All @@ -98,5 +98,5 @@ def test_backticks_to_code_skip_invalid_params():

try:
pbh.backticks_to_code_tags(data)
except Exception as exc:
assert False, f"Raised an exception {exc}"
except:
assert False, f"Raised an exception"

0 comments on commit 3424e13

Please sign in to comment.