diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ecc4928..a2f231d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -30,7 +30,7 @@ UNRELEASED * Add support for ``assertDictContainsSubset``. * Put parenthesis around expressions if required. - + * Fixed assertRaisesRegex, assertRaisesRegexp and assertWarnsRegex. The regex was getting replaced with an undefined variable `pattern`. @@ -41,11 +41,11 @@ UNRELEASED the `match` kwarg in `pytest.raises` instead of creating a variable with the context manager and doing an assert on `re.search`. - + * Add a short developer guide. * Remove testing on Python 3.0, 3.1, 3.2, add 3.6 and 3.7. - + * Distribute package as a universal wheel. diff --git a/RELEASING.rst b/RELEASING.rst index f13143c..5bd3ff4 100644 --- a/RELEASING.rst +++ b/RELEASING.rst @@ -39,4 +39,3 @@ To publish a new release ``X.Y.Z``, the steps are as follows: The PR will be automatically merged. #. Update the version in ``unittest2pytest/__init__.py`` and ``CHANGELOG.rst`` for the next release (usually use "minor+1" with the ``.dev0`` suffix). - diff --git a/unittest2pytest/fixes/fix_remove_class.py b/unittest2pytest/fixes/fix_remove_class.py index e51a2e4..a2bee47 100644 --- a/unittest2pytest/fixes/fix_remove_class.py +++ b/unittest2pytest/fixes/fix_remove_class.py @@ -30,20 +30,20 @@ from fissix.fixer_util import find_indentation, token """ -Node(classdef, - [Leaf(1, 'class'), - Leaf(1, 'TestAssertEqual'), - Leaf(7, '('), - Leaf(1, 'TestCase'), - Leaf(8, ')'), - Leaf(11, ':'), +Node(classdef, + [Leaf(1, 'class'), + Leaf(1, 'TestAssertEqual'), + Leaf(7, '('), + Leaf(1, 'TestCase'), + Leaf(8, ')'), + Leaf(11, ':'), Node(suite, [ - Leaf(4, '\n'), - Leaf(5, ' '), + Leaf(4, '\n'), + Leaf(5, ' '), Node(funcdef, [ - Leaf(1, 'def'), + Leaf(1, 'def'), Leaf(1, 'test_you'), ... - ]), + ]), Leaf(6, '')])]) """