diff --git a/pyscript.core/src/stdlib/pyscript/display.py b/pyscript.core/src/stdlib/pyscript/display.py index f6bff53ed02..c8930e4f789 100644 --- a/pyscript.core/src/stdlib/pyscript/display.py +++ b/pyscript.core/src/stdlib/pyscript/display.py @@ -145,7 +145,7 @@ def _write(element, value, append=False): out_element.innerHTML = html -def display(*values, target=None, append=True): +def display(*values, target=None, append=False): if target is None: target = current_target() elif not isinstance(target, str): diff --git a/pyscript.core/tests/integration/test_02_display.py b/pyscript.core/tests/integration/test_02_display.py index 1ea603305ed..65c881e2ac6 100644 --- a/pyscript.core/tests/integration/test_02_display.py +++ b/pyscript.core/tests/integration/test_02_display.py @@ -30,7 +30,7 @@ def test_simple_display(self): """, timeout=20000, @@ -140,9 +140,9 @@ def test_tag_target_attribute(self): """
@@ -179,16 +179,16 @@ def test_consecutive_display_target(self): """hello in between 1 and 2
""" ) @@ -202,8 +202,8 @@ def test_multiple_display_calls_same_tag(self): """ """ ) @@ -316,7 +316,7 @@ def test_display_multiple_values(self): from pyscript import display hello = 'hello' world = 'world' - display(hello, world) + display(hello, world, append=True) """ ) @@ -377,7 +377,7 @@ def test_display_list_dict_tuple(self): l = ['A', 1, '!'] d = {'B': 2, 'List': l} t = ('C', 3, '!') - display(l, d, t) + display(l, d, t, append=True) """ ) @@ -394,7 +394,7 @@ def test_display_should_escape(self): """ """ ) @@ -407,7 +407,7 @@ def test_display_HTML(self): """ """ )