1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/tests/utils_tests
Aymeric Augustin b8ba73cd0c Raised SuspiciousFileOperation in safe_join.
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.
2014-11-11 19:05:14 +01:00
..
archives Fixed #22681 -- Made TarArchive recognize leading directories properly. 2014-06-03 12:00:33 -04:00
eggs Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
files Whitespace cleanup. 2013-10-10 16:49:20 -04:00
locale/nl/LC_MESSAGES
test_module Fixed #23670 -- Prevented partial import state during module autodiscovery 2014-10-31 08:01:47 -04:00
__init__.py
models.py
test_archive.py
test_autoreload.py
test_baseconv.py
test_checksums.py
test_crypto.py
test_datastructures.py
test_dateformat.py
test_dateparse.py
test_datetime_safe.py
test_decorators.py
test_encoding.py
test_feedgenerator.py
test_functional.py
test_html.py
test_http.py
test_ipv6.py
test_itercompat.py
test_jslex.py
test_lazyobject.py
test_lorem_ipsum.py
test_module_loading.py
test_no_submodule.py
test_numberformat.py
test_os_utils.py
test_regex_helper.py
test_safestring.py
test_simplelazyobject.py
test_termcolors.py
test_text.py
test_timesince.py
test_timezone.py
test_tree.py
test_tzinfo.py