diff --git a/tests/test_ccgparser.py b/tests/test_ccgparser.py
index 18d495d490468ad4f50e6a4e154c965e2beb27e5..82a4fd4943e85b26be02b4a56b14d5a6ea2dda9f 100644
--- a/tests/test_ccgparser.py
+++ b/tests/test_ccgparser.py
@@ -13,18 +13,18 @@ import ccgparser  # noqa
 
 
 class CCGtoJSONTestCase(unittest.TestCase):
+    def __init__(self, *args, **kwargs):
+        super().__init__(*args, **kwargs)
+        self.maxDiff = None
 
     def test_ccg_to_json(self):
         """
         Provides some example OpenCCG outputs and the expected JSON parses.
         """
-        self.test_files = (Path(os.path.dirname(__file__))
-                           / 'test_files'
-                           / 'ccg_to_json').glob('*')
-
-        for name, test_case in [(tf.name, json.loads(tf.read_text()))
-                                for tf in self.test_files]:
-            with self.subTest(test_case=name):
+        test_files = (Path(os.path.dirname(__file__)) / 'test_files' / 'ccg_to_json').glob('*')
+        for tf in test_files:
+            with self.subTest(test_case=tf.name):
+                test_case = json.loads(tf.read_text())
                 ccg = test_case['ccg']
                 expected = test_case['json']