Fix lint.

This commit is contained in:
Florian Bruhin 2015-04-14 07:00:56 +02:00
parent 6ae94d6f49
commit ba678e29fb
3 changed files with 14 additions and 12 deletions

View File

@ -131,9 +131,10 @@ class TestSplit:
@pytest.fixture(params=_parse_split_test_data_str()) @pytest.fixture(params=_parse_split_test_data_str())
def split_test_case(self, request): def split_test_case(self, request):
""" """Fixture to automatically parametrize all depending tests.
Fixture that will automatically parametrize all tests the depend on it
using the parsed test case data. It will use the test data from test_data_str, parsed using
_parse_split_test_data_str().
""" """
return request.param return request.param

View File

@ -50,9 +50,9 @@ BAD_VALUES = {
def iter_good_values(): def iter_good_values():
""" """Yield "good" (C data type, value) tuples.
Yields pairs of (c data type, value) which should pass overflow
checking. Those should pass overflow checking.
""" """
for ctype, values in GOOD_VALUES.items(): for ctype, values in GOOD_VALUES.items():
for value in values: for value in values:
@ -60,10 +60,10 @@ def iter_good_values():
def iter_bad_values(): def iter_bad_values():
""" """Yield pairs of "bad" (C type, value, repl) tuples.
Yields pairs of (c type, value, repl) for values which don't pass
overflow checking, and a value they should be replaced with if overflow Theose should not pass overflow checking. The third value is the value they
checking should not be fatal. should be replaced with if overflow checking should not be fatal.
""" """
for ctype, values in BAD_VALUES.items(): for ctype, values in BAD_VALUES.items():
for value, repl in values: for value, repl in values:

View File

@ -29,8 +29,8 @@ import overflow_test_cases
class TestCheckOverflow: class TestCheckOverflow:
"""Test check_overflow.
""" """Test check_overflow."""
@pytest.mark.parametrize('ctype, val', @pytest.mark.parametrize('ctype, val',
overflow_test_cases.iter_good_values()) overflow_test_cases.iter_good_values())
@ -55,6 +55,7 @@ class TestCheckOverflow:
class TestGetQtArgs: class TestGetQtArgs:
"""Tests for get_args.""" """Tests for get_args."""
@pytest.fixture @pytest.fixture