diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-02 01:32:37 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-02 01:32:37 -0300 |
commit | d940db58fb9dbe3219aa871b304e1a01542286c0 (patch) | |
tree | b5c5cd4e259ef7c668c5330f707ca31d788e9aab /tests/18_test_Config.py | |
parent | 00c4b65ae5e6144a3cb8383a96b93b8462c3f01f (diff) |
10_test_Config: port to Python3
Python3 has no asserItemsEqual, sigh
Diffstat (limited to 'tests/18_test_Config.py')
-rw-r--r-- | tests/18_test_Config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/18_test_Config.py b/tests/18_test_Config.py index 54c00bec..51bc9927 100644 --- a/tests/18_test_Config.py +++ b/tests/18_test_Config.py @@ -128,6 +128,7 @@ class TestConfigParser(unittest.TestCase, GbpLogTester): parser = TestOptionParser('cmd') parser.add_config_file_option(option_name="withshort", dest="with_short", help="foo") - self.assertItemsEqual(['withshort'], parser.valid_options) + self.assertEquals('withshort', parser.valid_options[0]) + self.assertEquals(len(parser.valid_options), 1) self.assertTrue(parser.has_option("--withshort")) self.assertTrue(parser.has_option("-S")) |