Skip to content

community/py3-pyfakefs: disable two tests on riscv64

omni requested to merge omni/aports:disable-tests-py3-pyfakefs into master
=================================== FAILURES ===================================
__________________ FakeOsModuleTest.test_chown_follow_symlink __________________

self = <pyfakefs.tests.fake_os_test.FakeOsModuleTest testMethod=test_chown_follow_symlink>

    def test_chown_follow_symlink(self):
        self.skip_real_fs()
        file_path = self.make_path("some_file")
        self.create_file(file_path)
        link_path = self.make_path("link_to_some_file")
        self.create_symlink(link_path, file_path)

        self.os.chown(link_path, 100, 101)
        st = self.os.stat(link_path)
        self.assertEqual(st[stat.ST_UID], 100)
        self.assertEqual(st[stat.ST_GID], 101)
        st = self.os.stat(link_path, follow_symlinks=False)
>       self.assertNotEqual(st[stat.ST_UID], 100)
E       AssertionError: 100 == 100

pyfakefs/tests/fake_os_test.py:2110: AssertionError
________________ FakeOsModuleTest.test_chown_no_follow_symlink _________________

self = <pyfakefs.tests.fake_os_test.FakeOsModuleTest testMethod=test_chown_no_follow_symlink>

    def test_chown_no_follow_symlink(self):
        self.skip_real_fs()
        file_path = self.make_path("some_file")
        self.create_file(file_path)
        link_path = self.make_path("link_to_some_file")
        self.create_symlink(link_path, file_path)

        self.os.chown(link_path, 100, 101, follow_symlinks=False)
        st = self.os.stat(link_path)
>       self.assertNotEqual(st[stat.ST_UID], 100)
E       AssertionError: 100 == 100

pyfakefs/tests/fake_os_test.py:2122: AssertionError
=========================== short test summary info ============================
FAILED pyfakefs/tests/fake_os_test.py::FakeOsModuleTest::test_chown_follow_symlink
FAILED pyfakefs/tests/fake_os_test.py::FakeOsModuleTest::test_chown_no_follow_symlink
====== 2 failed, 1293 passed, 863 skipped, 2 xfailed, 1 xpassed in 32.72s ======
>>> ERROR: py3-pyfakefs: check failed

Merge request reports