From: Karel Zak Date: Tue, 14 Jan 2014 16:34:08 +0000 (+0100) Subject: pylibmount: import directly from pylibmount in tests X-Git-Tag: v2.25-rc1~644 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ecdec6d866c936bd234230df9cee54fc35b2d63c;p=thirdparty%2Futil-linux.git pylibmount: import directly from pylibmount in tests 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 --- diff --git a/libmount/python/test_mount_context.py b/libmount/python/test_mount_context.py index deb1c2ccfc..7aea444b17 100755 --- a/libmount/python/test_mount_context.py +++ b/libmount/python/test_mount_context.py @@ -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} [testoptions]\nTests:\n".format(sys.argv[0])) diff --git a/libmount/python/test_mount_tab.py b/libmount/python/test_mount_tab.py index 9d7d4edca1..1f63b95545 100755 --- a/libmount/python/test_mount_tab.py +++ b/libmount/python/test_mount_tab.py @@ -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} [testoptions]\nTests:\n".format(sys.argv[0])) diff --git a/libmount/python/test_mount_tab_update.py b/libmount/python/test_mount_tab_update.py index f1b0332d0f..a16e9e3413 100755 --- a/libmount/python/test_mount_tab_update.py +++ b/libmount/python/test_mount_tab_update.py @@ -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} [testoptions]\nTests:\n".format(sys.argv[0]))