Skip to content

Commit

Permalink
Note python 2.6 test incompatibilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Boerboom committed Nov 29, 2017
1 parent 54baca1 commit afbd403
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand All @@ -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())

Expand All @@ -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())

Expand All @@ -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())

0 comments on commit afbd403

Please sign in to comment.