Issue #7099: Decimal.is_normal should return True for all nonzero
finite non-subnormal values, even those with exponent > Emax.
diff --git a/Lib/decimal.py b/Lib/decimal.py
index 75e5eea..7384d36 100644
--- a/Lib/decimal.py
+++ b/Lib/decimal.py
@@ -2917,7 +2917,7 @@
return False
if context is None:
context = getcontext()
- return context.Emin <= self.adjusted() <= context.Emax
+ return context.Emin <= self.adjusted()
def is_qnan(self):
"""Return True if self is a quiet NaN; otherwise return False."""