python-dask/0001-Skip-test_encoding_gh601-on-big-endian-machines.patch
Elliott Sales de Andrade 64f50c6b25 Patch broken tests to work.
2021-06-20 02:20:01 -04:00

34 lines
935 B
Diff

From 0d43bed7efaf54dc2c40d853ce19cf62de128370 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/3] 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 a6c50d12..6905f31d 100644
--- a/dask/dataframe/io/tests/test_csv.py
+++ b/dask/dataframe/io/tests/test_csv.py
@@ -1,6 +1,7 @@
import gzip
import os
from io import BytesIO
+import sys
from time import sleep
from unittest import mock
@@ -1096,6 +1097,7 @@ xfail_pandas_100 = pytest.mark.xfail(
)
+@pytest.mark.skipif(sys.byteorder == 'big', reason='Broken on big-endian machines')
@pytest.mark.parametrize(
"encoding",
[
--
2.31.1