diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-10-09 06:26:07 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-09 20:50:31 -0400 |
| commit | ec0803b1be161afe4db41d152fe6ed11eb6ff69c (patch) | |
| tree | ee560b975a460ebfb788feb6c421b32c961bb4d0 /tests | |
| parent | d1b25a64c21bd3649122dc991badf635e00dd2ae (diff) | |
[2.1.x] Capitalized "Python" in docs and comments.
Backport of e90af8bad44341cf8ebd469dac57b61a95667c1d from master.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/file_storage/tests.py | 2 | ||||
| -rw-r--r-- | tests/i18n/test_percents.py | 2 | ||||
| -rw-r--r-- | tests/inspectdb/tests.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 33dc699ab4..16548b86cb 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -781,7 +781,7 @@ class FileFieldStorageTests(TestCase): # Create sample file temp_storage.save('tests/example.txt', ContentFile('some content')) - # Load it as python file object + # Load it as Python file object with open(temp_storage.path('tests/example.txt')) as file_obj: # Save it using storage and read its content temp_storage.save('tests/file_obj', file_obj) diff --git a/tests/i18n/test_percents.py b/tests/i18n/test_percents.py index 5ab146a4c2..e17d041020 100644 --- a/tests/i18n/test_percents.py +++ b/tests/i18n/test_percents.py @@ -33,7 +33,7 @@ class ExtractingStringsWithPercentSigns(POFileAssertionMixin, FrenchTestCase): Percent signs are python formatted. These tests should all have an analogous translation tests below, ensuring - the python formatting does not persist through to a rendered template. + the Python formatting does not persist through to a rendered template. """ def setUp(self): diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index e994b2cb74..9ab8b01122 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -138,7 +138,7 @@ class InspectDBTestCase(TestCase): out = StringIO() call_command('inspectdb', table_name_filter=inspectdb_tables_only, stdout=out) output = out.getvalue() - error_message = "inspectdb generated an attribute name which is a python keyword" + error_message = "inspectdb generated an attribute name which is a Python keyword" # Recursive foreign keys should be set to 'self' self.assertIn("parent = models.ForeignKey('self', models.DO_NOTHING)", output) self.assertNotIn( |
