Skip to content

Commit 064d309

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
mark_tests_working_on_intel_armhf
At least some of these are pd.Timestamp(np.nan) = pd.NaT on x86 but 1970-01-01 on arm* because float NaN -> int is undefined: numpy/numpy#8325 pandas-dev/pandas#17792 pandas-dev/pandas#26964 Author: Andreas Tille <[email protected]>, Graham Inggs <[email protected]>, Rebecca N. Palmer <[email protected]> Bug-Debian: https://bugs.debian.org/877419 https://bugs.debian.org/877754 Gbp-Pq: Name mark_tests_working_on_intel_armhf.patch
1 parent 367fd12 commit 064d309

File tree

6 files changed

+11
-0
lines changed

6 files changed

+11
-0
lines changed

pandas/tests/dtypes/cast/test_downcast.py

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def test_downcast_conversion_empty(any_real_dtype):
6868
tm.assert_numpy_array_equal(result, np.array([], dtype=np.int64))
6969

7070

71+
@pytest.mark.intel
7172
@pytest.mark.parametrize("klass", [np.datetime64, np.timedelta64])
7273
def test_datetime_likes_nan(klass):
7374
dtype = klass.__name__ + "[ns]"

pandas/tests/indexes/datetimes/test_datetime.py

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def test_time_overflow_for_32bit_machines(self):
6464
idx2 = pd.date_range(end="2000", periods=periods, freq="S")
6565
assert len(idx2) == periods
6666

67+
@pytest.mark.intel
6768
def test_nat(self):
6869
assert DatetimeIndex([np.nan])[0] is pd.NaT
6970

pandas/tests/io/pytables/test_pytables.py

+4
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ def check(format, index):
10971097
check("table", index)
10981098
check("fixed", index)
10991099

1100+
@pytest.mark.intel
11001101
@pytest.mark.skipif(
11011102
not is_platform_little_endian(), reason="reason platform is not little endian"
11021103
)
@@ -1129,6 +1130,7 @@ def test_encoding(self):
11291130
],
11301131
)
11311132
@pytest.mark.parametrize("dtype", ["category", object])
1133+
@pytest.mark.intel
11321134
def test_latin_encoding(self, dtype, val):
11331135
enc = "latin-1"
11341136
nan_rep = ""
@@ -1308,6 +1310,7 @@ def test_read_missing_key_close_store(self):
13081310
# read with KeyError before another write
13091311
df.to_hdf(path, "k2")
13101312

1313+
@pytest.mark.intel
13111314
def test_append_frame_column_oriented(self):
13121315

13131316
with ensure_clean_store(self.path) as store:
@@ -3935,6 +3938,7 @@ def test_start_stop_fixed(self):
39353938
with pytest.raises(NotImplementedError):
39363939
store.select("dfs", start=0, stop=5)
39373940

3941+
@pytest.mark.intel
39383942
def test_select_filter_corner(self):
39393943

39403944
df = DataFrame(np.random.randn(50, 100))

pandas/tests/io/test_stata.py

+3
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ def test_read_write_reread_dta14(self, file, parsed_114, version):
501501
written_and_read_again = self.read_dta(path)
502502
tm.assert_frame_equal(written_and_read_again.set_index("index"), parsed_114)
503503

504+
@pytest.mark.intel
504505
@pytest.mark.parametrize(
505506
"file", ["dta15_113", "dta15_114", "dta15_115", "dta15_117"]
506507
)
@@ -1238,6 +1239,7 @@ def test_read_chunks_columns(self):
12381239
tm.assert_frame_equal(from_frame, chunk, check_dtype=False)
12391240
pos += chunksize
12401241

1242+
@pytest.mark.intel
12411243
@pytest.mark.parametrize("version", [114, 117])
12421244
def test_write_variable_labels(self, version):
12431245
# GH 13631, add support for writing variable labels
@@ -1335,6 +1337,7 @@ def test_write_variable_label_errors(self):
13351337
with tm.ensure_clean() as path:
13361338
original.to_stata(path, variable_labels=variable_labels_long)
13371339

1340+
@pytest.mark.intel
13381341
def test_default_date_conversion(self):
13391342
# GH 12259
13401343
dates = [

pandas/tests/reductions/test_reductions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ def test_mode_mixeddtype(self, dropna, expected1, expected2):
11451145
expected = Series(expected2, dtype=object)
11461146
tm.assert_series_equal(result, expected)
11471147

1148+
@pytest.mark.intel
11481149
@pytest.mark.parametrize(
11491150
"dropna, expected1, expected2",
11501151
[

pandas/tests/series/test_constructors.py

+1
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ def test_construction_to_datetimelike_unit(self, arr_dtype, dtype, unit):
963963

964964
tm.assert_series_equal(result, expected)
965965

966+
@pytest.mark.intel
966967
@pytest.mark.parametrize("arg", ["2013-01-01 00:00:00", pd.NaT, np.nan, None])
967968
def test_constructor_with_naive_string_and_datetimetz_dtype(self, arg):
968969
# GH 17415: With naive string

0 commit comments

Comments
 (0)