From afbd403affc0fdc7603a8467c651b56092ed0f4a Mon Sep 17 00:00:00 2001 From: Peter Boerboom Date: Wed, 29 Nov 2017 13:20:26 -0500 Subject: [PATCH] Note python 2.6 test incompatibilities. --- tests/test_distribution.py | 1 + tests/test_options.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/tests/test_distribution.py b/tests/test_distribution.py index 1df195d..ad04b9c 100644 --- a/tests/test_distribution.py +++ b/tests/test_distribution.py @@ -162,6 +162,7 @@ def test_only_largest_included(self): ) self.assertTrue(len(classes) == 1) + # TODO: make compatible with python 2.6 ? self.assertIn('TC5', classes) # Function selection should not have changed. diff --git a/tests/test_options.py b/tests/test_options.py index 665bbb1..2e00e1c 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -122,6 +122,7 @@ def test_lpt_no_data_arg_aborts(self): ] options, _ = self.parser.parse_args(args) + # TODO: make compatible with python 2.6 ? with self.assertRaises(AssertionError): self.plugin.configure(options, Config()) @@ -139,6 +140,7 @@ def test_lpt_missing_data_file_aborts(self): ] options, _ = self.parser.parse_args(args) + # TODO: make compatible with python 2.6 ? with self.assertRaises(IOError): self.plugin.configure(options, Config()) @@ -157,6 +159,7 @@ def test_lpt_invalid_json_file_aborts(self): ] options, _ = self.parser.parse_args(args) + # TODO: make compatible with python 2.6 ? with self.assertRaises(ValueError): self.plugin.configure(options, Config()) @@ -175,5 +178,6 @@ def test_lpt_invalid_data_format_aborts(self): ] options, _ = self.parser.parse_args(args) + # TODO: make compatible with python 2.6 ? with self.assertRaises(KeyError): self.plugin.configure(options, Config())