From 12101c55c86511ecfb6e7d16aefa500ca3d54fb2 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Fri, 2 Sep 2016 12:53:01 -0400 Subject: [PATCH] STY: Don't assign variables that won't be created. --- tests/pipeline/test_statistical.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pipeline/test_statistical.py b/tests/pipeline/test_statistical.py index 80028b43..d2fdcde0 100644 --- a/tests/pipeline/test_statistical.py +++ b/tests/pipeline/test_statistical.py @@ -373,14 +373,14 @@ class StatisticalBuiltInsTestCase(WithTradingEnvironment, ZiplineTestCase): ) with self.assertRaises(ValueError): - spearman_factor = RollingSpearmanOfReturns( + RollingSpearmanOfReturns( target=my_asset, returns_length=3, correlation_length=1, ) with self.assertRaises(ValueError): - regression_factor = RollingLinearRegressionOfReturns( + RollingLinearRegressionOfReturns( target=my_asset, returns_length=3, regression_length=1,