Files
codeql/python/extractor/cli-integration-test/writing-diagnostics/make_test.py

5 lines
202 B
Python

# Creates a test file that will cause a RecursionError when run with the Python extractor.
with open('repo_dir/recursion_error.py', 'w') as f:
f.write("print({})\n".format("+".join(["1"] * 1000)))