Skip to content

Commit

Permalink
py2 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
wimglenn committed Jan 21, 2023
1 parent a21e4e7 commit 5276539
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def test_good_python_env():
]


def test_placeholder_serializes():
def test_placeholder_serializes(make_dist):
# this just checks that the placeholder can render to text without issue
dist = CircularMarker(summary=".", parent=None)
JohnnyDist.serialise(dist, fields=FIELDS, format="human")
make_dist()
dist = JohnnyDist("jdtest")
CircularMarker(summary=".", parent=dist)
txt = dist.serialise(fields=FIELDS, format="human")
assert txt

0 comments on commit 5276539

Please sign in to comment.