summaryrefslogtreecommitdiff
path: root/src/isodate/tests
diff options
context:
space:
mode:
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