summaryrefslogtreecommitdiff
path: root/tests/20_test_rpm.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/20_test_rpm.py')
-rw-r--r--tests/20_test_rpm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/20_test_rpm.py b/tests/20_test_rpm.py
index f76b129f..52a14ff1 100644
--- a/tests/20_test_rpm.py
+++ b/tests/20_test_rpm.py
@@ -27,7 +27,7 @@ from gbp.rpm import (SrcRpmFile, SpecFile, parse_srpm, NoSpecError, guess_spec,
guess_spec_repo, spec_from_repo)
from gbp.git.repository import GitRepository
-DATA_DIR = os.path.abspath(os.path.splitext(__file__)[0] + '_data')
+DATA_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'data','rpm')
SRPM_DIR = os.path.join(DATA_DIR, 'srpms')
SPEC_DIR = os.path.join(DATA_DIR, 'specs')
@@ -390,7 +390,7 @@ 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,
+ assert_raises(GbpError, parse_srpm,
os.path.join(DATA_DIR, 'notexists.src.rpm'))
"""