Skip to content

Commit

Permalink
Update line-endings for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed May 22, 2024
1 parent 470aa0a commit 2fca2e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions panel/tests/ui/widgets/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ def test_filedropper_text_file(page):
page.set_input_files('input[type="file"]', file)

wait_until(lambda: len(widget.value) == 1, page)
assert widget.value == {file.name: file.read_text()}
assert widget.value == {
file.name: file.read_text().replace("\r\n", "\n"),
}

def test_filedropper_multiple_file_error(page):
widget = pn.widgets.FileDropper()
Expand All @@ -754,5 +756,6 @@ def test_filedropper_multiple_files(page):

wait_until(lambda: len(widget.value) == 2)
assert widget.value == {
file1.name: file1.read_text(), file2.name: file2.read_text()
file1.name: file1.read_text().replace("\r\n", "\n"),
file2.name: file2.read_text().replace("\r\n", "\n"),
}

0 comments on commit 2fca2e3

Please sign in to comment.