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())
def split_test_case(self, request):
"""
Fixture that will automatically parametrize all tests the depend on it
using the parsed test case data.
"""Fixture to automatically parametrize all depending tests.
It will use the test data from test_data_str, parsed using
_parse_split_test_data_str().
"""
return request.param

View File

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

View File

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