From 6e6dbc38f34c3c303ce740629770f6fd17f88d27 Mon Sep 17 00:00:00 2001 From: Kale Kundert Date: Mon, 31 Jan 2022 14:12:53 -0500 Subject: [PATCH] test: be more careful about creating paths --- tests/test_plot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_plot.py b/tests/test_plot.py index 32ce2f4..94eeaaf 100644 --- a/tests/test_plot.py +++ b/tests/test_plot.py @@ -66,8 +66,9 @@ def test_pick_attrs(df, attrs, expected, error): indirect=['layout'], ) def test_show(layout, attrs, color, tol, expected, error): - actual = layout.parent / expected - expected = REF_IMAGES / expected + if not error: + actual = layout.parent / expected + expected = REF_IMAGES / expected with error: fig = show(layout, attrs, color)