Skip to content

Commit 30fe1f7

Browse files
committed
Add no-cover to version-dependent import
1 parent 12560f0 commit 30fe1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gemd/units/impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pint import UnitRegistry, Unit, register_unit_format
1111
try: # Pint 0.23 migrated the location of this method, and augmented it
1212
from pint.pint_eval import tokenizer
13-
except ImportError:
13+
except ImportError: # pragma: no cover
1414
from pint.compat import tokenizer
1515
from tokenize import NAME, NUMBER, OP, ERRORTOKEN, TokenInfo
1616
# alias the error that is thrown when units are incompatible

0 commit comments

Comments
 (0)