docstr: make sure that we are raising on positional indexing
  w.r.t. an integer index
docstr_tok: ["make","sure","that","we","are","raising","on","positional","indexing","w.r.t",".","an","integer","index"]
code: def test_integer_positional_indexing(self, idx):
      """make sure that we are raising on positional indexing
      w.r.t. an integer index
      """
      s = Series(range(2, 6), index=range(2, 6))
  
      result = s[2:4]
      expected = s.iloc[2:4]
      tm.assert_series_equal(result, expected)
  
      klass = RangeIndex
      msg = (
          "cannot do (slice|positional) indexing "
          rf"on {klass.__name__} with these indexers \[(2|4)\.0\] of "
          "type float"
      )
      with pytest.raises(TypeError, match=msg):
          s[idx]
      with pytest.raises(TypeError, match=msg):
          s.iloc[idx]
  
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, RangeIndex, Series, date_range, period_range, timedelta_range
  import pandas._testing
label_desc: Use image node_id 10 for calling the TestFloatIndexers obj's underlying member method code with example usage: obj.test_integer_positional_indexing(idx) without return types