commit 087a86a9867df0f97ebce491bd4c06d74004afeb
Author: Michal Srb <msrb(a)redhat.com>
Date: Thu Jun 11 07:11:34 2015 +0200
[test] Another Python 2.6 compatibility fix
test/maven_depmap_test.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/test/maven_depmap_test.py b/test/maven_depmap_test.py
index 5185069..186ceec 100644
--- a/test/maven_depmap_test.py
+++ b/test/maven_depmap_test.py
@@ -4,7 +4,8 @@ import six
import os
import unittest
import shutil
-from test_common import DIRPATH, mvn_depmap, call_script, prepare_metadata
+from test_common import (DIRPATH, mvn_depmap, call_script,
+ prepare_metadata, assertIn)
from test_rpmbuild import Package
from lxml import etree
@@ -334,7 +335,7 @@ class TestMavenDepmap(unittest.TestCase):
p.append_to_prep("%add_maven_depmap g:a:1 this/file/doesnt/exist.jar")
_, stderr, return_value = p.run_prep()
self.assertEqual(1, return_value, 'bad return value')
- self.assertIn('file not found', stderr)
+ assertIn(self, 'file not found', stderr)
if __name__ == '__main__':
unittest.main()
Show replies by date