fix test case in fun test_parse_srpm
authorJun Wang <junbill.wang@samsung.com>
Fri, 18 Mar 2016 16:05:21 +0000 (00:05 +0800)
committerJun Wang <junbill.wang@samsung.com>
Fri, 18 Mar 2016 16:06:12 +0000 (00:06 +0800)
Change-Id: I71af697a54d2a03f34f9a341d39b1c18e3bb5bb0

tests/test_rpm.py

index 3150acbb45ee3a3bdaf59a483dd782f550262d9a..97390465be2cd31ff4c3fca2f537b00c72d01763 100644 (file)
@@ -390,10 +390,15 @@ class TestUtilityFunctions(object):
     def test_parse_srpm(self):
         """Test parse_srpm() function"""
         parse_srpm(os.path.join(SRPM_DIR, 'gbp-test-1.0-1.src.rpm'))
+       assert_raises(GbpError, parse_srpm, 
+               os.path.join(DATA_DIR, 'notexists.src.rpm'))
+
+       """
         with assert_raises(GbpError):
             parse_srpm(os.path.join(DATA_DIR, 'notexists.src.rpm'))
         with assert_raises(GbpError):
             parse_srpm(os.path.join(SPEC_DIR, 'gbp-test.spec'))
+       """
 
     def test_guess_spec(self):
         """Test guess_spec() function"""