Skip to content

Commit ebddce4

Browse files
committed
Fix pre-commit warnings
1 parent e973932 commit ebddce4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/async/test_asyncio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,8 @@ async def test_should_return_proper_api_name_on_error(page: Page) -> None:
9797
False
9898
), "Accessing undefined JavaScript variable should have thrown exception"
9999
except Exception as error:
100-
print(":-:" + error.message + ":-:")
101100
assert (
102-
error.message
101+
str(error)
103102
== """Page.evaluate: ReferenceError: does_not_exist is not defined
104103
at eval (eval at evaluate (:234:30), <anonymous>:1:1)
105104
at eval (<anonymous>)

tests/sync/test_sync.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,8 @@ def test_should_return_proper_api_name_on_error(page: Page) -> None:
356356
False
357357
), "Accessing undefined JavaScript variable should have thrown exception"
358358
except Exception as error:
359-
print(":-:" + error.message + ":-:")
360359
assert (
361-
error.message
360+
str(error)
362361
== """Page.evaluate: ReferenceError: does_not_exist is not defined
363362
at eval (eval at evaluate (:234:30), <anonymous>:1:1)
364363
at eval (<anonymous>)

0 commit comments

Comments
 (0)