Skip to content

Commit

Permalink
Linting.
Browse files Browse the repository at this point in the history
Add missing blank lines.
  • Loading branch information
rbarrois committed Jul 7, 2020
1 parent a7742f0 commit 7ccc724
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class TopLevelTestCase(unittest.TestCase):

if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down Expand Up @@ -98,6 +99,7 @@ def test_validate_invalid(self):
class VersionTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down Expand Up @@ -383,6 +385,7 @@ def test_bump_prerelease_versions(self):
class SpecItemTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down Expand Up @@ -562,6 +565,7 @@ def test_hash(self):
class CoerceTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down Expand Up @@ -592,12 +596,14 @@ def test_invalid(self):
class SpecTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield

def assertCountEqual(self, a, b):
import collections

self.assertEqual(
collections.Counter(a),
collections.Counter(b),
Expand Down
1 change: 1 addition & 0 deletions tests/test_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class MatchTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down
1 change: 1 addition & 0 deletions tests/test_npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
class NpmSpecTests(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down
2 changes: 2 additions & 0 deletions tests/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
class ParsingTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down Expand Up @@ -75,6 +76,7 @@ def test_kwargs(self):
class ComparisonTestCase(unittest.TestCase):
if sys.version_info[0] <= 2:
import contextlib

@contextlib.contextmanager
def subTest(self, **kwargs):
yield
Expand Down

0 comments on commit 7ccc724

Please sign in to comment.