Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 653
    • Issues 653
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #2170

Closed
Open
Created Oct 23, 2015 by Bitbucket Importer@bitbucket_importerMaintainer

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
Assignee
Assign to
Time tracking