Skip to content

FileList.files order discrepancy on Arch Linux since 28.5.0 #816

Closed
@felixonmars

Description

@felixonmars

Reproduced in both Python 2.7.12 and 3.5.2. I have tried both ptr and tox and still getting the same test failure:

=================================== FAILURES ===================================
____________________ TestFileListTest.test_include_pattern _____________________

self = <setuptools.tests.test_manifest.TestFileListTest object at 0x7fe946df4860>

    def test_include_pattern(self):
        # return False if no match
        file_list = FileList()
        self.make_files([])
        assert not file_list.include_pattern('*.py')

        # return True if files match
        file_list = FileList()
        self.make_files(['a.py', 'b.txt'])
        assert file_list.include_pattern('*.py')

        # test * matches all files
        file_list = FileList()
        self.make_files(['a.py', 'b.txt'])
        file_list.include_pattern('*')
>       assert file_list.files == ['a.py', 'b.txt']
E       assert ['b.txt', 'a.py'] == ['a.py', 'b.txt']
E         At index 0 diff: 'b.txt' != 'a.py'
E         Use -v to get the full diff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions