summaryrefslogtreecommitdiff
path: root/src/isodate/tests
diff options
context:
space:
mode:
authorgweis <g.weis@uq.edu.au>2022-03-13 10:04:41 +1000
committerGitHub <noreply@github.com>2022-03-13 10:04:41 +1000
commit8856fdf0e46c7bca00229faa1aae6b7e8ad6e76c (patch)
treefd84b05ed3b92f8907f2338b68344e1b7a10ee6d /src/isodate/tests
parent14aefddd4952a29958f3110bd884bf90b9d5fa9a (diff)
parentcc57560c10b7128840f133b6fc296dbf4d44d352 (diff)
downloadisodate-master.tar.gz
Merge pull request #70 from kianmeng/fix-typosHEADmaster
Fix typos
Diffstat (limited to 'src/isodate/tests')
-rw-r--r--src/isodate/tests/test_duration.py4
-rw-r--r--src/isodate/tests/test_strf.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/isodate/tests/test_duration.py b/src/isodate/tests/test_duration.py
index 5d36a3e..20c3f2d 100644
--- a/src/isodate/tests/test_duration.py
+++ b/src/isodate/tests/test_duration.py
@@ -133,7 +133,7 @@ DATE_TEST_CASES = (
),
)
-# A list of test cases of additon of date/datetime and Duration. The results
+# A list of test cases of addition of date/datetime and Duration. The results
# are compared against a given expected result.
DATE_CALC_TEST_CASES = (
(date(2000, 2, 1), Duration(years=1, months=1), date(2001, 3, 1)),
@@ -267,7 +267,7 @@ class DurationTest(unittest.TestCase):
def test_parseerror(self):
"""
- Test for unparseable duration string.
+ Test for unparsable duration string.
"""
self.assertRaises(ISO8601Error, parse_duration, "T10:10:10")
diff --git a/src/isodate/tests/test_strf.py b/src/isodate/tests/test_strf.py
index 701c877..2e2b246 100644
--- a/src/isodate/tests/test_strf.py
+++ b/src/isodate/tests/test_strf.py
@@ -56,7 +56,7 @@ def create_testcase(dt, format, expectation):
tm_idst=1
"""
tt = self.ORIG["localtime"](secs)
- # befor 2000 everything is dst, after 2000 no dst.
+ # before 2000 everything is dst, after 2000 no dst.
if tt.tm_year < 2000:
dst = 1
else:
@@ -80,7 +80,7 @@ def create_testcase(dt, format, expectation):
self.ORIG["DSTOFFSET"] = tzinfo.DSTOFFSET
self.ORIG["DSTDIFF"] = tzinfo.DSTDIFF
self.ORIG["localtime"] = time.localtime
- # ovveride all saved values with fixtures.
+ # override all saved values with fixtures.
# calculate LOCAL TZ offset, so that this test runs in
# every time zone
tzinfo.STDOFFSET = timedelta(seconds=36000) # assume LOC = +10:00