Skip to content

Commit

Permalink
Merge pull request #56 from sadielbartholomew/doctesting
Browse files Browse the repository at this point in the history
Fix `doctest` failures for Python 3.10+ on `AttributeError` messages
  • Loading branch information
sadielbartholomew authored Jan 31, 2024
2 parents 3dc8980 + 92eea6f commit 4326299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfunits/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class Units:
>>> u.calendar
Traceback (most recent call last):
...
AttributeError: Units has no attribute 'calendar'
AttributeError: Units has no attribute 'calendar'...
>>> v = Units('days since 2000-1-1', 'standard')
>>> v.calendar
'standard'
Expand Down Expand Up @@ -1773,7 +1773,7 @@ def calendar(self):
>>> Units('days since 2001-1-1').calendar
Traceback (most recent call last):
...
AttributeError: Units has no attribute 'calendar'
AttributeError: Units has no attribute 'calendar'...
"""
value = self._calendar
Expand Down

0 comments on commit 4326299

Please sign in to comment.