Skip to content

Commit 3782255

Browse files
committed
better skip
1 parent aa26882 commit 3782255

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/source/guides/creating-interfaces/html-with-idom/index.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ Additionally, instead of specifying ``style`` using a string, we use a dictionar
9090
.. testcode::
9191

9292
html.img(
93-
{
94-
"src": "https://picsum.photos/id/237/500/300",
95-
"style": {"width": "50%", "marginLeft": "25%"},
96-
"alt": "Billie Holiday",
97-
}
93+
src="https://picsum.photos/id/237/500/300",
94+
style={"width": "50%", "marginLeft": "25%"},
95+
alt="Billie Holiday",
9896
)
9997

10098
.. raw:: html

tests/test__console/test_update_html_usages.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
from idom._console.update_html_usages import generate_rewrite, update_html_usages
99

1010

11+
if sys.version_info < (3, 9):
12+
pytestmark = pytest.mark.skip(reason="ast.unparse is Python>=3.9")
13+
14+
1115
def test_update_html_usages(tmp_path):
1216
runner = CliRunner()
1317

@@ -214,7 +218,6 @@ def func():
214218
if isinstance(item, str)
215219
else item,
216220
)
217-
@pytest.mark.skipif(sys.version_info < (3, 9), reason="ast.unparse is Python>=3.9")
218221
def test_generate_rewrite(source, expected):
219222
actual = generate_rewrite(Path("test.py"), dedent(source).strip())
220223
if isinstance(expected, str):

0 commit comments

Comments
 (0)