]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
pylibmount: import directly from pylibmount in tests
authorKarel Zak <kzak@redhat.com>
Tue, 14 Jan 2014 16:34:08 +0000 (17:34 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jan 2014 16:40:47 +0000 (17:40 +0100)
This change does not have any impact to in a standard way installed
libmount impact. It's simplification for in-tree tests.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/python/test_mount_context.py
libmount/python/test_mount_tab.py
libmount/python/test_mount_tab_update.py

index deb1c2ccfc5d1d4e70714a07358d649b221c1029..7aea444b17c45daf012fadb00a7a740472d5de47 100755 (executable)
@@ -2,7 +2,9 @@ import os
 import sys
 import stat
 import errno
-import libmount as mnt
+
+# use "import libmount" for in a standard way installed python binding
+import pylibmount as mnt
 
 def usage(tss):
        print("\nUsage:\n\t{:s} <test> [testoptions]\nTests:\n".format(sys.argv[0]))
index 9d7d4edca1f33d49b0252c94c83f92a365c6aa06..1f63b955457c6675576e948173b5d1927c7889aa 100755 (executable)
@@ -3,7 +3,9 @@ import sys
 import stat
 import errno
 import functools as ft
-import libmount as mnt
+
+# use "import libmount" for in a standard way installed python binding
+import pylibmount as mnt
 
 def usage(tss):
        print("\nUsage:\n\t{:s} <test> [testoptions]\nTests:\n".format(sys.argv[0]))
index f1b0332d0fb4bf452a6572f3afeef245fcc356dd..a16e9e34139a230d700ef6084f502abe97246348 100755 (executable)
@@ -2,7 +2,9 @@ import os
 import sys
 import stat
 import errno
-import libmount as mnt
+
+# use "import libmount" for in a standard way installed python binding
+import pylibmount as mnt
 
 def usage(tss):
        print("\nUsage:\n\t{:s} <test> [testoptions]\nTests:\n".format(sys.argv[0]))