Make virtual repr file names unique (#896)
* Make virtual repr file names unique * Add newsfragments
This commit is contained in:
parent
03dd7136cf
commit
0575d51ffd
|
@ -0,0 +1 @@
|
|||
Fix ``coverage report`` for projects who use ``attrs`` and don't set a ``--source``.
|
|
@ -0,0 +1 @@
|
|||
Fix ``coverage report`` for projects who use ``attrs`` and don't set a ``--source``.
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue