From ec0803b1be161afe4db41d152fe6ed11eb6ff69c Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 9 Oct 2018 06:26:07 -0700 Subject: [2.1.x] Capitalized "Python" in docs and comments. Backport of e90af8bad44341cf8ebd469dac57b61a95667c1d from master. --- tests/file_storage/tests.py | 2 +- tests/i18n/test_percents.py | 2 +- tests/inspectdb/tests.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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( -- cgit v1.3