X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Ft%2F010-launch.py;h=93a8154aa87bce980967f4daad7dd3d1a565b4db;hb=8869adf1e811d894088dbb0f371edc23299005c8;hp=c2bdd1d0949a5929ba71edbce5a2dfa25722faa1;hpb=b3f11c5f62f725fa3f09452b38d52dba764f80d0;p=libguestfs.git diff --git a/python/t/010-launch.py b/python/t/010-launch.py index c2bdd1d..93a8154 100644 --- a/python/t/010-launch.py +++ b/python/t/010-launch.py @@ -15,12 +15,14 @@ # 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 () g.add_drive ("test.img") g.launch () -g.wait_ready () + +os.unlink ("test.img")