mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 790845 - 2.7.3: massive test failures on some architectures (reopened).
Fix some test failures caused by erroneous size assumptions.
This commit is contained in:
@@ -312,11 +312,11 @@ class GncNumeric(GnuCashCoreClass):
|
||||
raise TypeError('Only two ints allowed: ' + str(args))
|
||||
elif len(args) == 3:
|
||||
if type(args[0]) == float \
|
||||
and type(args[1]) == type(GNC_DENOM_AUTO) \
|
||||
and type(args[1]) in (int, long) \
|
||||
and type(args[2]) == type(GNC_HOW_DENOM_FIXED):
|
||||
return double_to_gnc_numeric(*args)
|
||||
else:
|
||||
raise TypeError('Only (float, GNC_HOW_RND_*, GNC_HOW_RND_*, GNC_HOW_RND_*) allowed: ' + str(args))
|
||||
raise TypeError('Only (float, int/long, GNC_HOW_RND_*) allowed: ' + str(args))
|
||||
else:
|
||||
raise TypeError('Required single int/float/str or two ints: ' + str(args))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user