Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version = 1

test_patterns = ["tests/**"]

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"
1 change: 0 additions & 1 deletion ci/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def exec_in_env():
else:
bin_path = join(env_path, "bin")
if not exists(env_path):
import subprocess

print("Making bootstrap env in: {0} ...".format(env_path))
try:
Expand Down
1 change: 0 additions & 1 deletion src/lazy_object_proxy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

try:
from .cext import Proxy
from .cext import identity
except ImportError:
from .slots import Proxy
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

if PY3:
import builtins
exec_ = getattr(builtins, "exec")
exec_ = builtins.exec
del builtins

else:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_lazy_object_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ class Class(object):
def __enter__(self):
return self

def __exit__(*args, **kwargs):
def __exit__(self, *args, **kwargs):
return

instance = Class()
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def __getattr__(self, name):
def test_proxy_hasattr_call(lop):
proxy = lop.Proxy(lambda: None)

assert not hasattr(proxy, '__call__')
assert not callable(proxy)


@skipcallable
Expand All @@ -1540,7 +1540,7 @@ def test_proxy_is_callable(lop):
def test_callable_proxy_hasattr_call(lop):
proxy = lop.Proxy(lambda: None)

assert hasattr(proxy, '__call__')
assert callable(proxy)


@skipcallable
Expand Down