X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=python%2Ft%2F050-lvcreate.py;h=8503023f932a70e3d326a498fc4e4251d07978fa;hp=98227e2327767b2625db17928a064d6c03387ae9;hb=2a243cfbe1938d324ac6445aa2917ec3db0d8c50;hpb=b3f11c5f62f725fa3f09452b38d52dba764f80d0 diff --git a/python/t/050-lvcreate.py b/python/t/050-lvcreate.py index 98227e2..8503023 100644 --- a/python/t/050-lvcreate.py +++ b/python/t/050-lvcreate.py @@ -15,9 +15,10 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +import os import guestfs -g = guestfs.guestfs() +g = guestfs.GuestFS() f = open ("test.img", "w") f.truncate (500 * 1024 * 1024) f.close () @@ -33,5 +34,4 @@ if (g.lvs () != ["/dev/VG/LV1", "/dev/VG/LV2"]): g.sync () del g -import os os.unlink ("test.img")