class_docstr: Tests specific to IntervalIndex with integer-like subtype
class_docstr_tok: ["Tests","specific","to","IntervalIndex","with","integer-like","subtype"]
code: def test_subtype_integer_errors(self):
      # int64 -> uint64 fails with negative values
      index = interval_range(-10, 10)
      dtype = IntervalDtype("uint64", "right")
  
      # Until we decide what the exception message _should_ be, we
      #  assert something that it should _not_ be.
      #  We should _not_ be getting a message suggesting that the -10
      #  has been wrapped around to a large-positive integer
      msg = "^(?!(left side of interval must be <= right side))"
      with pytest.raises(ValueError, match=msg):
          index.astype(dtype)
  
imports: import re
  import numpy
  import pytest
  from pandas.core.dtypes.dtypes import CategoricalDtype, IntervalDtype
  from pandas import CategoricalIndex, Index, IntervalIndex, NaT, Timedelta, Timestamp, interval_range
  import pandas._testing
label_desc: Use image node_id 4 for calling the TestIntSubtype obj's underlying member method code with example usage: obj.test_subtype_integer_errors() without return types