rpython/rtyper/module/test/test_ll_os_path.py fails with some 2.7.x versions
Created originally on Bitbucket by vaibhavsood12 (Vaibhav Sood)
Ran the test on a Ubuntu 14.10 PPC64LE machine (same test passes on a Ubuntu 14.10 x86-64 machine):
./pytest.py -rfExs rpython/rtyper/module/test/test_ll_os_path.py
Get the following failure log (trace snipped to show only failure part):
..
#!python
s_start = SomeInteger(knowntype=int, nonneg=False, unsigned=False), s_stop = None, error = 'find'
def check_negative_slice(s_start, s_stop, error="slicing"):
if isinstance(s_start, SomeInteger) and not s_start.nonneg:
raise AnnotatorError("%s: not proven to have non-negative start" %
> error)
E AnnotatorError:
E
E find: not proven to have non-negative start
E
E
E Occurred processing the following simple_call:
E (AttributeError getting at the binding!)
E index2_0 = simple_call(v100, ('\\'), v101)
E
E In <FunctionGraph of (ntpath:95)splitdrive at 0x3fff83dc0350>:
E Happened at file /usr/lib/python2.7/ntpath.py line 124
E
E ==> index2 = normp.find(sep, index + 1)
E # a UNC path can't have two slashes in a row
E # (after the initial two)
E if index2 == index + 1:
E
E Known variable annotations:
E v100 = SomeBuiltinMethod(analyser=<rpython.tool.descriptor.InstanceMethod object at 0x3fff83dcf210>, methodname='find', s_self=SomeString(no_nul=True))
E v101 = SomeInteger(knowntype=int, nonneg=False, unsigned=False)
rpython/annotator/unaryop.py:374: AnnotatorError
============================================================================ short test summary info ============================================================================
FAIL rpython/rtyper/module/test/test_ll_os_path.py::test_ntpath
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information