From 4a9638767d4c4940d9978ca7b140f70a6842c58a Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Thu, 23 Mar 2017 14:05:44 -0700 Subject: [PATCH] use math (cherry picked from commit 4b75f57) --- tests/test_modules/test_eos/test_modifiedAttributeDict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_modules/test_eos/test_modifiedAttributeDict.py b/tests/test_modules/test_eos/test_modifiedAttributeDict.py index c98aa9d9b..1d3da0cbe 100644 --- a/tests/test_modules/test_eos/test_modifiedAttributeDict.py +++ b/tests/test_modules/test_eos/test_modifiedAttributeDict.py @@ -33,7 +33,7 @@ def test_multiply_stacking_penalties(DB, Saveddata, RifterFit): else: # Calculate what our next resist should be # See: http://wiki.eveuniversity.org/Eve_Math#Stacking_Penalties - current_effectiveness = pow(0.5, (pow(0.45 * (_ - 1), 2))) + current_effectiveness = math.pow(0.5, (math.pow(0.45 * (_ - 1), 2))) new_item_modifier = 1 + ((item_modifer * current_effectiveness) / 100) calculated_resist = (em_resist * new_item_modifier)