cleaning up

This commit is contained in:
Aly Sivji 2018-08-02 18:22:15 -05:00
parent a0ba881c22
commit 1184db8273
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
Provide richer comparison on ``AssertionError`` for objects created using `dataclasses <https://docs.python.org/3/library/dataclasses.html>`_ (Python 3.7+) or `attrs package <http://www.attrs.org/en/stable/>`_.
Richer comparison information on ``AssertionError`` for objects created using `attrs <http://www.attrs.org/en/stable/>`_ or `dataclasses <https://docs.python.org/3/library/dataclasses.html>`_ (Python 3.7+).

View File

@ -585,6 +585,7 @@ class TestAssert_reprcompare_dataclass(object):
assert "Omitting" not in lines[1]
assert lines[2] == "['field_a']"
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
def test_dataclasses_with_attribute_comparison_off(self):
from dataclasses import dataclass, field
@ -603,6 +604,7 @@ class TestAssert_reprcompare_dataclass(object):
for line in lines[2:]:
assert "field_b" not in line
@pytest.mark.skipif(sys.version_info < (3, 7), reason="Dataclasses in Python3.7+")
def test_comparing_different_data_classes(self):
from dataclasses import dataclass