Fixed typos in test comments.

This commit is contained in:
Mingun Pak 2016-01-24 02:18:11 +09:00 committed by Tim Graham
parent beb9112a79
commit 4c912d184d
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ class FileUploadTests(TestCase):
tdir = sys_tempfile.mkdtemp() tdir = sys_tempfile.mkdtemp()
self.addCleanup(shutil.rmtree, tdir, True) self.addCleanup(shutil.rmtree, tdir, True)
# This file contains chinese symbols and an accented char in the name. # This file contains Chinese symbols and an accented char in the name.
with open(os.path.join(tdir, UNICODE_FILENAME), 'w+b') as file1: with open(os.path.join(tdir, UNICODE_FILENAME), 'w+b') as file1:
file1.write(b'b' * (2 ** 10)) file1.write(b'b' * (2 ** 10))
file1.seek(0) file1.seek(0)

View File

@ -94,7 +94,7 @@ class GISFunctionsTests(TestCase):
@skipUnlessDBFeature("has_AsGML_function") @skipUnlessDBFeature("has_AsGML_function")
def test_asgml(self): def test_asgml(self):
# Should throw a TypeError when tyring to obtain GML from a # Should throw a TypeError when trying to obtain GML from a
# non-geometry field. # non-geometry field.
qs = City.objects.all() qs = City.objects.all()
with self.assertRaises(TypeError): with self.assertRaises(TypeError):