Skip to content

Commit ea53fe2

Browse files
committed
fix: incorrect test!
1 parent 91a16c5 commit ea53fe2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/awkward/contents/recordarray.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,11 +1296,12 @@ def _is_equal_to(
12961296
) -> bool:
12971297
return (
12981298
self._is_equal_to_generic(other, all_parameters)
1299-
and set(self._fields) == set(other.fields)
1299+
and self.is_tuple == other.is_tuple
1300+
and set(self.fields) == set(other.fields)
13001301
and all(
13011302
content._is_equal_to(
13021303
other.content(field), index_dtype, numpyarray, all_parameters
13031304
)
1304-
for field, content in zip(self._fields, self._contents)
1305+
for field, content in zip(self.fields, self._contents)
13051306
)
13061307
)

tests/test_2368_type_is_equal.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_record_tuple():
8282
assert record_type != tuple_type
8383

8484

85-
def test_record_mixed():
85+
def test_record_permuted():
8686
record = ak.types.from_datashape("10 * var * {x: int64, y: int32}")
8787
permutation = ak.types.from_datashape("10 * var * {y: int64, x: int32}")
88-
assert record == permutation
88+
assert record != permutation

0 commit comments

Comments
 (0)