Skip to content

Commit d07c11b

Browse files
committed
Resolve RSE102
1 parent bd3e6c9 commit d07c11b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pytest_pyodide/hypothesis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class NoHypothesisUnpickler(pickle.Unpickler):
3232
def find_class(self, module, name):
3333
# Only allow safe classes from builtins.
3434
if module == "hypothesis":
35-
raise pickle.UnpicklingError()
35+
raise pickle.UnpicklingError
3636
return super().find_class(module, name)
3737

3838

pytest_pyodide/runner.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,22 @@ def __init__(
144144
self.restore_state()
145145

146146
def get_driver(self, jspi=False):
147-
raise NotImplementedError()
147+
raise NotImplementedError
148148

149149
def goto(self, page):
150-
raise NotImplementedError()
150+
raise NotImplementedError
151151

152152
def set_script_timeout(self, timeout):
153-
raise NotImplementedError()
153+
raise NotImplementedError
154154

155155
def quit(self):
156-
raise NotImplementedError()
156+
raise NotImplementedError
157157

158158
def refresh(self):
159-
raise NotImplementedError()
159+
raise NotImplementedError
160160

161161
def run_js_inner(self, code, check_code):
162-
raise NotImplementedError()
162+
raise NotImplementedError
163163

164164
def prepare_driver(self):
165165
if self.script_type == "classic":
@@ -569,7 +569,7 @@ def get_driver(self, jspi=False):
569569

570570
class NodeDriver:
571571
def __getattr__(self, x):
572-
raise NotImplementedError()
572+
raise NotImplementedError
573573

574574
return NodeDriver()
575575

0 commit comments

Comments
 (0)