Skip to content

Commit

Permalink
Skip test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 26, 2023
1 parent 0708cb4 commit 8257f96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions panel/tests/ui/widgets/test_misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io
import sys
import tempfile
import time

Expand All @@ -10,8 +11,10 @@
from panel.widgets import FileDownload, TextInput

pytestmark = pytest.mark.ui
not_windows = pytest.mark.skipif(sys.platform=='win32', reason="Does not work on Windows")


@not_windows
def test_file_download_updates_when_navigating_between_dynamic_tabs(page, port):
text_input = TextInput(value='abc')

Expand Down Expand Up @@ -39,7 +42,7 @@ def create_file(value):
page.click('a.bk-btn')

download = download_info.value
tmp = tempfile.NamedTemporaryFile(suffix='txt')
tmp = tempfile.NamedTemporaryFile(suffix='.txt')
download.save_as(tmp.name)
assert tmp.file.read().decode('utf-8') == 'abc'

Expand All @@ -55,6 +58,6 @@ def create_file(value):
page.click('a.bk-btn')

download = download_info.value
tmp = tempfile.NamedTemporaryFile(suffix='txt')
tmp = tempfile.NamedTemporaryFile(suffix='.txt')
download.save_as(tmp.name)
assert tmp.file.read().decode('utf-8') == 'abcdef'

0 comments on commit 8257f96

Please sign in to comment.