Skip to content

infinite recursion on Windows #1555

Description

@pombredanne

Description

See https://ci.appveyor.com/project/nexB/scancode-toolkit/builds/24389675/job/0l6svxksrctojrrs

tests\scancode\test_resource.py:1203: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src\scancode\resource.py:1380: in __init__
    self._populate(scan_data)
src\scancode\resource.py:1591: in _populate
    parent = self._get_or_create_parent(path, parent_by_path)
src\scancode\resource.py:1460: in _get_or_create_parent
    parent_parent = self._get_or_create_parent(parent_path, parent_by_path)
src\scancode\resource.py:1460: in _get_or_create_parent
    parent_parent = self._get_or_create_parent(parent_path, parent_by_path)
src\scancode\resource.py:1460: in _get_or_create_parent
    parent_parent = self._get_or_create_parent(parent_path, parent_by_path)
src\scancode\resource.py:1460: in _get_or_create_parent
    parent_parent = self._get_or_create_parent(parent_path, parent_by_path)
E   RuntimeError: maximum recursion depth exceeded
!!! Recursion detected (same locals & position)
=========================== short test summary info ===========================
FAIL tests/scancode/test_cli.py::test_scan_should_not_fail_on_faulty_pdf_or_pdfminer_bug_but_instead_report_errors_and_keep_trucking_with_html
FAIL tests/scancode/test_cli.py::test_merge_multiple_scans
FAIL tests/scancode/test_resource.py::TestVirtualCodebaseCreation::test_VirtualCodebase_create_from_multiple_scans
SKIP [1] c:\projects\scancode-toolkit\lib\site-packages\_pytest\nose.py:23: This test cannot run on windows as these are not legal file names.
SKIP [1] c:\projects\scancode-toolkit\lib\site-packages\_pytest\nose.py:23: Python tar cannot extract these files on Windows

@JonoYang do you mind to look into it since you likely introduced this with #1439 #1543 👼

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions