| Age | Commit message (Collapse) | Author |
|
slash.
Backport of 36db4dd937ae11c5b687c5d2e5fa3c27e4140001 from master
|
|
|
|
|
|
* assertIsNone()/assertIsNotNone() instead of comparing to None.
* assertLess() for < comparisons.
* assertIs() for 'is' expressions.
* assertIsInstance() for isinstance() expressions.
* rounding of assertAlmostEqual() for round() expressions.
* assertIs(..., True/False) instead of comparing to True/False.
* assertIs()/assertIsNot() for ==/!= comparisons.
* assertNotEqual() for == comparisons.
* assertTrue()/assertFalse() instead of comparing to True/False.
|
|
|
|
|
|
|
|
exist_ok=True).
|
|
Used more specific errors (e.g. FileExistsError) as appropriate.
|
|
|
|
|
|
|
|
iter(dict) is equivalent to iter(dict.keys()).
|
|
|
|
|
|
manager.
|
|
equivalents
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham and Simon Charette for the reviews.
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
The smart_* version should only be used when a lazy string should keep
its lazy status.
|
|
Also removed try/except/fail antipattern that hides exceptions.
|
|
Thanks Tim Graham for polishing the patch, updating the tests, and
writing documentation. Thanks Carl Meyer for shepherding the DEP.
|
|
|
|
empty string.
|
|
|
|
|
|
|
|
|
|
|
|
Thanks to Tim Graham for the report.
|
|
|
|
Specifically stopped using the dir argument.
|
|
Dropped the DJANGO_TEST_TEMP_DIR environment variable.
Before this change, proper removal depended on the developer passing
dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
|
|
|
|
|
|
Thanks Tom Christie for the report and review.
|
|
|
|
|
|
comprehension
|
|
|
|
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
|
|
TestCase decorator.
|
|
|