Upgrade pre-commit hooks except pyupgrade

This commit is contained in:
Anthony Sottile
2018-06-26 06:35:27 -07:00
parent 8133d1955e
commit cbaa7dd56a
86 changed files with 309 additions and 631 deletions

View File

@@ -4,7 +4,6 @@ import sys
class TestRaises(object):
def test_raises(self):
source = "int('qwe')"
excinfo = pytest.raises(ValueError, source)
@@ -22,9 +21,7 @@ class TestRaises(object):
pytest.raises(ValueError, int, "hello")
def test_raises_callable_no_exception(self):
class A(object):
def __call__(self):
pass
@@ -109,7 +106,6 @@ class TestRaises(object):
import gc
class T(object):
def __call__(self):
raise ValueError
@@ -160,7 +156,6 @@ class TestRaises(object):
from six import add_metaclass
class Meta(type(object)):
def __getitem__(self, item):
return 1 / 0