-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Testing an installed package shouldn't require root permissions #4353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you install the package locally then you don't need root permissions. If you install with |
The tests themselves have nothing to do with the fact that they are being run as root, so it's not clear what you mean by
see #761 |
@cpcloud Actually I use Debian package here, installed via package manager. Also, did you really see the traceback above? The test fails because it doesn't have permission to modify a file in If I didn't convince you, this failure can also be seen on Ubuntu's Jenkins server. |
Sorry, I guess I wasn't being clear. IIRC, most package managers require root permissions to install anything. Anyway, you're right. The tests should use make liberal use of the |
@mitya57 I am pretty sure you are running with < 0.12. This was fixed to use a temporary (non permissioned) in 0.12. |
@jreback according to this line the jenkins server above is running 0.12
although not sure if that is before or after the change u mentioned that line is near the bottom of the page |
Yeah, I'm using the same snapshot (ec8920a, 5-day-old), and don't see anything related in newer commits... |
sorry....this actually specifies a direct path (which is wrong)..so yes...marking as a test bug |
|
- Update to 0.12.0 - Two BUILD_DEPENDS are only RUN_DEPENDS, move them - Patch some files out of MANIFEST.in - Cherry pick upstream issue/commit [1] - Define regression-test target and TEST_DEPENDS - Document USES=display in support of unit tests [1] pandas-dev/pandas#4353 PR: ports/180889 Submitted by: John W. O'Brien <[email protected]> (maintainer)
- Update to 0.12.0 - Two BUILD_DEPENDS are only RUN_DEPENDS, move them - Patch some files out of MANIFEST.in - Cherry pick upstream issue/commit [1] - Define regression-test target and TEST_DEPENDS - Document USES=display in support of unit tests [1] pandas-dev/pandas#4353 PR: ports/180889 Submitted by: John W. O'Brien <[email protected]> (maintainer) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@327698 35697150-7ecd-e111-bb59-0022644237b5
Trying to run
nosetests3 pandas
on an installed pandas package, I get:... and other similar errors. Maybe it'll be a good idea to fix the tests so that they can be run on an installed package without needing to modify the actually installed files.
The text was updated successfully, but these errors were encountered: