[PATCH 3/4] Fix a unit test

Mathieu Bridon bochecha at fedoraproject.org
Thu Feb 5 16:35:47 UTC 2015


From: Mathieu Bridon <bochecha at daitauha.fr>

This wasn't passing a tuple, but a string to the _format_line()
function.
---
 test/test_sources.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_sources.py b/test/test_sources.py
index 71b49fb..edff838 100644
--- a/test/test_sources.py
+++ b/test/test_sources.py
@@ -13,7 +13,7 @@ sys.path = old_path
 class formatLineTestCase(unittest.TestCase):
     def test_wrong_number_of_fields(self):
         WRONG_ENTRIES = [
-            ('foo'),
+            ('foo',),
             ('foo', 'bar', 'foo', 'bar'),
         ]
         for entry in WRONG_ENTRIES:
-- 
2.1.0



More information about the buildsys mailing list