Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/utils_tests/test_os_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed redundant numbered parameters from str.format().Berker Peksag2014-12-031-1/+1
| | | | Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
* Raised SuspiciousFileOperation in safe_join.Aymeric Augustin2014-11-111-0/+5
| | | | | | | | | | | | | | | Added a test for the condition safe_join is designed to prevent. Previously, a generic ValueError was raised. It was impossible to tell an intentional exception raised to implement safe_join's contract from an unintentional exception caused by incorrect inputs or unexpected conditions. That resulted in bizarre exception catching patterns, which this patch removes. Since safe_join is a private API and since the change is unlikely to create security issues for users who use it anyway -- at worst, an uncaught SuspiciousFileOperation exception will bubble up -- it isn't documented.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+1
| | | | Refs #20680.
* Modified utils_tests for unittest2 discovery.Preston Timmons2013-04-121-0/+26