Skip to content

Commit 4326299

Browse files
Merge pull request #56 from sadielbartholomew/doctesting
Fix `doctest` failures for Python 3.10+ on `AttributeError` messages
2 parents 3dc8980 + 92eea6f commit 4326299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cfunits/units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ class Units:
582582
>>> u.calendar
583583
Traceback (most recent call last):
584584
...
585-
AttributeError: Units has no attribute 'calendar'
585+
AttributeError: Units has no attribute 'calendar'...
586586
>>> v = Units('days since 2000-1-1', 'standard')
587587
>>> v.calendar
588588
'standard'
@@ -1773,7 +1773,7 @@ def calendar(self):
17731773
>>> Units('days since 2001-1-1').calendar
17741774
Traceback (most recent call last):
17751775
...
1776-
AttributeError: Units has no attribute 'calendar'
1776+
AttributeError: Units has no attribute 'calendar'...
17771777
17781778
"""
17791779
value = self._calendar

0 commit comments

Comments
 (0)