enthought / enthought/apptools

test_properties may fail if the test is run by a user with elevated privileges

Open
#191 0 comments 0 reactions 0 assignees View on GitHub
component: test suite
Dominant language
Python
Stars
38
Forks
21
PR merge metrics
No merged PRs in 30d

Description

This issue is open referring the issue noted in this PR: https://github.com/enthought/apptools/pull/88

> When building and testing the package in a chroot enviornment, we have a root user. However, test_properties fails when run as a root user.
>
> os.chmod(f.path, stat.S_IRUSR)
> self.assertEqual(f.is_readonly, True)
>
> This fails because root will always have permission to write to the file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.