Skip to content

Commit

Permalink
Renamed test with PR nr
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanaif committed Jul 25, 2022
1 parent 2853fba commit 31985f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libawkward/array/Record.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ namespace awkward {
const int64_t
Record::axis_wrap_if_negative(int64_t axis) const {
if (axis == 0) {
throw std::invalid_argument(
std::string("Record at axis=0 is a scalar, not an array.") + FILENAME(__LINE__));
throw std::invalid_argument(
std::string("Record at axis=0 is a scalar, not an array") + FILENAME(__LINE__));
}
return array_.get()->axis_wrap_if_negative(axis);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def test_axis_wrap_if_negative_record_v1():

r = ak.Record(dict_cell_chain_field)

# with pytest.raises(np.AxisError):
# r = ak.to_regular(r, 0)
r = ak.to_regular(r, 0)
r = ak.to_regular(r, 2)

list_cell_chain_field = [
Expand Down

0 comments on commit 31985f9

Please sign in to comment.