aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/11_test_dch_main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/11_test_dch_main.py b/tests/11_test_dch_main.py
index 14cf5939..dbd82879 100644
--- a/tests/11_test_dch_main.py
+++ b/tests/11_test_dch_main.py
@@ -15,11 +15,11 @@ import re
default_urgency = get_dch_default_urgency()
# For Ubuntu compatibility
-os_release = OsReleaseFile('/etc/lsb-release')
+os_release = OsReleaseFile()
# OS release codename and snapshot of version 0.9-2~1
-if os_release['DISTRIB_ID'] == 'Ubuntu':
- os_codename = os_release['DISTRIB_CODENAME']
+if os_release['ID'] == 'Ubuntu':
+ os_codename = os_release['UBUNTU_CODENAME']
snap_header_0_9 = r'^test-package\s\(0.9-1ubuntu1~1\.gbp([0-9a-f]{6})\)\sUNRELEASED;\surgency=%s' % default_urgency
new_version_0_9 = '0.9-1ubuntu1'
else: