Update tests/test_math_utils.py
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 22s
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 22s
This commit is contained in:
@@ -109,17 +109,6 @@ def test_generator_exit_direct():
|
||||
# Directly raise GeneratorExit exception
|
||||
raise GeneratorExit()
|
||||
|
||||
def test_recursion_limit():
|
||||
# Lower recursion limit to force RecursionError on deep recursion
|
||||
original_limit = sys.getrecursionlimit()
|
||||
sys.setrecursionlimit(50)
|
||||
def recurse():
|
||||
return recurse()
|
||||
try:
|
||||
recurse()
|
||||
finally:
|
||||
sys.setrecursionlimit(original_limit)
|
||||
|
||||
def test_malformed_code():
|
||||
# SyntaxError when executing malformed Python code
|
||||
exec("def bad(:\n pass")
|
||||
|
||||
Reference in New Issue
Block a user