diff --git a/changelog.d/895.change.rst b/changelog.d/895.change.rst new file mode 100644 index 00000000..d6c2aff7 --- /dev/null +++ b/changelog.d/895.change.rst @@ -0,0 +1 @@ +Fix ``coverage report`` for projects who use ``attrs`` and don't set a ``--source``. diff --git a/changelog.d/896.change.rst b/changelog.d/896.change.rst new file mode 100644 index 00000000..d6c2aff7 --- /dev/null +++ b/changelog.d/896.change.rst @@ -0,0 +1 @@ +Fix ``coverage report`` for projects who use ``attrs`` and don't set a ``--source``. diff --git a/src/attr/_make.py b/src/attr/_make.py index 19acc457..d46f8a3e 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -1888,7 +1888,7 @@ def _add_eq(cls, attrs=None): if HAS_F_STRINGS: def _make_repr(attrs, ns, cls): - unique_filename = "repr" + unique_filename = _generate_unique_filename(cls, "repr") # Figure out which attributes to include, and which function to use to # format them. The a.repr value can be either bool or a custom # callable.