Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand All @@ -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.


Expand Down
1 change: 0 additions & 1 deletion RELEASING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).

22 changes: 11 additions & 11 deletions unittest2pytest/fixes/fix_remove_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, '')])])
"""

Expand Down