summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-07-20 00:45:13 +1000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-07-19 18:24:06 +0200
commit9f11939dd1477981da2f3a5487d80101faa21230 (patch)
tree7039e25f2e3fb76bba2cc69dab745645fe4a4c36
parentfc1182af01c391ce33d7fcf51c756829c6a11d5b (diff)
Fixed typos in comments and a test name.
-rw-r--r--django/contrib/gis/db/backends/spatialite/introspection.py2
-rw-r--r--tests/dbshell/test_postgresql.py2
-rw-r--r--tests/defer/tests.py2
-rw-r--r--tests/utils_tests/test_numberformat.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/django/contrib/gis/db/backends/spatialite/introspection.py b/django/contrib/gis/db/backends/spatialite/introspection.py
index ccb9f0a1af..0feeb24397 100644
--- a/django/contrib/gis/db/backends/spatialite/introspection.py
+++ b/django/contrib/gis/db/backends/spatialite/introspection.py
@@ -6,7 +6,7 @@ from django.db.backends.sqlite3.introspection import (
class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
"""
- Sublcass that includes updates the `base_data_types_reverse` dict
+ Subclass that includes updates the `base_data_types_reverse` dict
for geometry field types.
"""
base_data_types_reverse = {
diff --git a/tests/dbshell/test_postgresql.py b/tests/dbshell/test_postgresql.py
index 40d2deae62..7047283bb3 100644
--- a/tests/dbshell/test_postgresql.py
+++ b/tests/dbshell/test_postgresql.py
@@ -105,7 +105,7 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase):
)
def test_sigint_handler(self):
- """SIGINT is ignored in Python and passed to psql to abort quries."""
+ """SIGINT is ignored in Python and passed to psql to abort queries."""
def _mock_subprocess_run(*args, **kwargs):
handler = signal.getsignal(signal.SIGINT)
self.assertEqual(handler, signal.SIG_IGN)
diff --git a/tests/defer/tests.py b/tests/defer/tests.py
index f2e86aca96..b67c5d9a5e 100644
--- a/tests/defer/tests.py
+++ b/tests/defer/tests.py
@@ -202,7 +202,7 @@ class BigChildDeferTests(AssertionMixin, TestCase):
self.assertEqual(obj.value, "foo")
self.assertEqual(obj.other, "bar")
- def test_only_sublcass(self):
+ def test_only_subclass(self):
# You can retrieve a single field on a subclass
obj = BigChild.objects.only("other").get(name="b1")
self.assert_delayed(obj, 4)
diff --git a/tests/utils_tests/test_numberformat.py b/tests/utils_tests/test_numberformat.py
index 1dac45e890..83e7d271b5 100644
--- a/tests/utils_tests/test_numberformat.py
+++ b/tests/utils_tests/test_numberformat.py
@@ -56,7 +56,7 @@ class TestNumberFormat(SimpleTestCase):
def test_float_numbers(self):
# A float without a fractional part (3.) results in a ".0" when no
- # deimal_pos is given. Contrast that with the Decimal('3.') case in
+ # decimal_pos is given. Contrast that with the Decimal('3.') case in
# test_decimal_numbers which doesn't return a fractional part.
self.assertEqual(nformat(3., '.'), '3.0')