From 91c28e9b1ed2b178877bc8af564f044371e0096d Mon Sep 17 00:00:00 2001 From: E Shaw Date: Tue, 1 Aug 2017 20:18:50 +0800 Subject: [PATCH] style fix in one test_pickling test --- axelrod/tests/unit/test_pickling.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/axelrod/tests/unit/test_pickling.py b/axelrod/tests/unit/test_pickling.py index 9af5f8d9f..342539d81 100644 --- a/axelrod/tests/unit/test_pickling.py +++ b/axelrod/tests/unit/test_pickling.py @@ -247,17 +247,13 @@ def test_dual_transformer_regression_test(self): player = InterspersedDualTransformersNamePrefixPresent() self.assert_orignal_equals_pickled(player) - interspersed_dual_transformers = ( - st.TrackHistoryTransformer()( - st.DualTransformer()( - st.InitialTransformer((C, D))( - st.DualTransformer()( - axl.WinStayLoseShift - ) - ) - ) - )() - ) + player_class = axl.WinStayLoseShift + player_class = st.DualTransformer()(player_class) + player_class = st.InitialTransformer((C, D))(player_class) + player_class = st.DualTransformer()(player_class) + player_class = st.TrackHistoryTransformer()(player_class) + + interspersed_dual_transformers = player_class() self.assert_orignal_equals_pickled(interspersed_dual_transformers)