python-dask/0001-Skip-test_encoding_gh601-on-big-endian-machines.patch
2023-08-19 18:52:24 -04:00

34 lines
1.0 KiB
Diff

From a5ea6c2f7fcaee8830aca6dca8102663976bae45 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sun, 7 Mar 2021 04:07:32 -0500
Subject: [PATCH 1/4] Skip test_encoding_gh601 on big-endian machines.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
dask/dataframe/io/tests/test_csv.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dask/dataframe/io/tests/test_csv.py b/dask/dataframe/io/tests/test_csv.py
index 1e0dd41a..e922227b 100644
--- a/dask/dataframe/io/tests/test_csv.py
+++ b/dask/dataframe/io/tests/test_csv.py
@@ -4,6 +4,7 @@ import gzip
import os
import warnings
from io import BytesIO, StringIO
+import sys
from unittest import mock
import pytest
@@ -1149,6 +1150,7 @@ def test_read_csv_with_datetime_index_partitions_n():
xfail_pandas_100 = pytest.mark.xfail(reason="https://github.com/dask/dask/issues/5787")
+@pytest.mark.skipif(sys.byteorder == 'big', reason='Broken on big-endian machines')
@pytest.mark.parametrize(
"encoding",
[
--
2.41.0