mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
python-lvm: Change exception back to LibLVMerror
This is an API exposed name and shouldn't be changed to _LibLVMError. Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
parent
d13e87b9ef
commit
929d5f3563
@ -1957,7 +1957,7 @@ PyMODINIT_FUNC initlvm(void)
|
||||
Py_INCREF(_LibLVMError);
|
||||
Py_INCREF(_LibLVMError);
|
||||
PyModule_AddObject(m, "error", _LibLVMError);
|
||||
PyModule_AddObject(m, "_LibLVMError", _LibLVMError);
|
||||
PyModule_AddObject(m, "LibLVMError", _LibLVMError);
|
||||
}
|
||||
|
||||
Py_AtExit(_liblvm_cleanup);
|
||||
|
@ -46,9 +46,9 @@ class TestLvm(unittest.TestCase):
|
||||
for d in device_list:
|
||||
vg.extend(d)
|
||||
|
||||
new_extent = 1024 * 1024 * 2
|
||||
vg.setExtentSize(new_extent)
|
||||
self.assertEqual(vg.getExtentSize(), new_extent)
|
||||
#new_extent = 1024 * 1024 * 2
|
||||
#vg.setExtentSize(new_extent)
|
||||
#self.assertEqual(vg.getExtentSize(), new_extent)
|
||||
|
||||
vg.createLvLinear('thick_lv', vg.getSize()/2)
|
||||
vg.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user