VirtualBox

Ticket #16084: test.py

File test.py, 341 bytes (added by exg, 8 years ago)

testcase

Line 
1#!/usr/bin/python
2
3import os
4import shutil
5import urllib2
6
7xact = urllib2.urlopen("https://www.x.org/archive/individual/app/appres-1.0.0.tar.gz")
8
9try:
10 pipe = os.popen("tar tfz -", "w")
11 try:
12 shutil.copyfileobj(xact, pipe)
13 finally:
14 if pipe.close() is not None:
15 print "Failed"
16finally:
17 xact.close()

© 2023 Oracle
ContactPrivacy policyTerms of Use