Skip to content

Commit f674811

Browse files
committed
Formatting
1 parent cf3a7a6 commit f674811

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/builtin/drawing/test_plot.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,12 @@ def msg(s):
224224
return f"in str_expected at pos {pos or '?'}: {s}"
225225

226226
assert result.get_head() == expected.get_head(), msg("heads must match")
227-
assert hasattr(result, "elements") == hasattr(
228-
expected, "elements"
229-
), msg("either both or none must have elements")
227+
assert hasattr(result, "elements") == hasattr(expected, "elements"), msg(
228+
"either both or none must have elements"
229+
)
230230
if hasattr(expected, "elements"):
231231
for i, e in enumerate(expected.elements):
232-
assert (
233-
len(result.elements) > i
234-
), msg("result has too few elements")
232+
assert len(result.elements) > i, msg("result has too few elements")
235233
check_structure(result.elements[i], e)
236234
else:
237235
assert str(result) == str(expected), msg("leaves don't match")
@@ -311,7 +309,6 @@ def msg(s):
311309
],
312310
)
313311
def test_plot_structure(str_expr, str_expected):
314-
315312
# TODO: unfortunately this only adds location information to the top-level expression
316313
# so not very useful
317314
session.evaluate("Set[$TrackLocations, True]")

0 commit comments

Comments
 (0)