fix screenshot filenames (#3241)

This commit is contained in:
benedikt-bartscher 2024-05-08 04:31:37 +02:00 committed by GitHub
parent 6b8a6f353b
commit f0a772d08c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ def pytest_exception_interact(node, call, report):
safe_filename = re.sub(
r"(?u)[^-\w.]",
"_",
str(node.nodeid).strip().replace(" ", "_").replace(":", "_"),
str(node.nodeid).strip().replace(" ", "_").replace(":", "_").replace(".py", ""),
)
try: