mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #1626 -- Fixed a bunch of typos in comments and docs. Thanks, Dexter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
853ee34191
commit
00b3891524
9 changed files with 11 additions and 11 deletions
|
@ -846,7 +846,7 @@ class DocTestFinder:
|
|||
if extraglobs is not None:
|
||||
globs.update(extraglobs)
|
||||
|
||||
# Recursively expore `obj`, extracting DocTests.
|
||||
# Recursively explore `obj`, extracting DocTests.
|
||||
tests = []
|
||||
self._find(tests, obj, name, module, source_lines, globs, {})
|
||||
return tests
|
||||
|
@ -1210,7 +1210,7 @@ class DocTestRunner:
|
|||
# Process each example.
|
||||
for examplenum, example in enumerate(test.examples):
|
||||
|
||||
# If REPORT_ONLY_FIRST_FAILURE is set, then supress
|
||||
# If REPORT_ONLY_FIRST_FAILURE is set, then suppress
|
||||
# reporting after the first failure.
|
||||
quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
|
||||
failures > 0)
|
||||
|
|
|
@ -15,7 +15,7 @@ class C:
|
|||
cache.set("key", "value")
|
||||
assert cache.get("key") == "value"
|
||||
|
||||
# get with non-existant keys
|
||||
# get with non-existent keys
|
||||
assert cache.get("does not exist") is None
|
||||
assert cache.get("does not exist", "bang!") == "bang!"
|
||||
|
||||
|
@ -57,4 +57,4 @@ for (key, value) in stuff.items():
|
|||
# expiration
|
||||
cache.set('expire', 'very quickly', 1)
|
||||
time.sleep(2)
|
||||
assert cache.get("expire") == None
|
||||
assert cache.get("expire") == None
|
||||
|
|
|
@ -195,7 +195,7 @@ datetime.datetime(2005, 7, 31, 12, 30, 45)
|
|||
|
||||
API_TESTS += """
|
||||
|
||||
# You can manually specify the primary key when creating a new objet
|
||||
# You can manually specify the primary key when creating a new object
|
||||
>>> a101 = articles.Article(id=101, headline='Article 101', pub_date=datetime(2005, 7, 31, 12, 30, 45))
|
||||
>>> a101.save()
|
||||
>>> a101 = articles.get_object(pk=101)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue