[diffoscope] 02/05: Import LooseVersion as LooseVersion.

Chris Lamb chris at chris-lamb.co.uk
Sat Mar 3 23:45:51 CET 2018


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit b35c2cc76a8592eab302339a19f875bc40681d39
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Mar 3 22:33:49 2018 +0000

    Import LooseVersion as LooseVersion.
---
 tests/comparators/test_rlib.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/comparators/test_rlib.py b/tests/comparators/test_rlib.py
index c1097f0..af2525c 100644
--- a/tests/comparators/test_rlib.py
+++ b/tests/comparators/test_rlib.py
@@ -21,8 +21,8 @@
 import pytest
 import subprocess
 
+from distutils.version import LooseVersion
 from diffoscope.comparators.ar import ArFile
-from distutils.version import LooseVersion as vcls
 
 from ..utils import diff_ignore_line_numbers
 from ..utils.data import load_fixture, get_data
@@ -56,10 +56,10 @@ def differences(rlib1, rlib2):
 def rlib_dis_expected_diff():
     actual_ver = llvm_version()
 
-    if (vcls(str(actual_ver)) >= vcls("3.8")):
+    if (LooseVersion(str(actual_ver)) >= LooseVersion("3.8")):
         diff_file = 'rlib_llvm_dis_expected_diff'
 
-    if (vcls(str(actual_ver)) >= vcls("5.0")):
+    if (LooseVersion(str(actual_ver)) >= LooseVersion("5.0")):
         diff_file = 'rlib_llvm_dis_expected_diff_5'
 
     return get_data(diff_file)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list