diff options
author | Karel Zak | 2014-01-14 17:34:08 +0100 |
---|---|---|
committer | Karel Zak | 2014-01-14 17:40:47 +0100 |
commit | ecdec6d866c936bd234230df9cee54fc35b2d63c (patch) | |
tree | 79d87bad4f9f07ecf79549f350ed9fd4ca20e317 /libmount/python | |
parent | pylibmount: remove unncessary subdirectory (diff) | |
download | kernel-qcow2-util-linux-ecdec6d866c936bd234230df9cee54fc35b2d63c.tar.gz kernel-qcow2-util-linux-ecdec6d866c936bd234230df9cee54fc35b2d63c.tar.xz kernel-qcow2-util-linux-ecdec6d866c936bd234230df9cee54fc35b2d63c.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'libmount/python')
-rwxr-xr-x | libmount/python/test_mount_context.py | 4 | ||||
-rwxr-xr-x | libmount/python/test_mount_tab.py | 4 | ||||
-rwxr-xr-x | libmount/python/test_mount_tab_update.py | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/libmount/python/test_mount_context.py b/libmount/python/test_mount_context.py index deb1c2ccf..7aea444b1 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} <test> [testoptions]\nTests:\n".format(sys.argv[0])) diff --git a/libmount/python/test_mount_tab.py b/libmount/python/test_mount_tab.py index 9d7d4edca..1f63b9554 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} <test> [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 f1b0332d0..a16e9e341 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} <test> [testoptions]\nTests:\n".format(sys.argv[0])) |