Skip to content

Commit cb8d762

Browse files
committed
Fix some Flake8
1 parent 6ec79b2 commit cb8d762

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/pytest_mock/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import functools
22
import inspect
3-
import sys
43

54
import pytest
65

tests/test_pytest_mock.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ def bar(self, arg):
251251
raise Exception(excepted_message)
252252

253253
foo = Foo()
254-
other = Foo()
255254
spy = mocker.spy(foo, "bar")
256255

257256
with pytest.raises(Exception) as exc_info:
@@ -744,7 +743,7 @@ def doIt(self):
744743

745744
with pytest.raises(ValueError) as excinfo:
746745
with mocker.patch.object(a, "doIt", return_value=True):
747-
assert a.doIt() == True
746+
assert a.doIt() is True
748747

749748
expected_error_msg = (
750749
"Using mocker in a with context is not supported. "

0 commit comments

Comments
 (0)