Commit e197e57d authored by agronholm's avatar agronholm

Modified test script to be py3k compatible

--HG--
branch : distribute
extra : rebase_source : d29c168646125155f3664cec0b88686ac14fbb22
parent 4dae8e43
......@@ -2,10 +2,14 @@
import os
import shutil
import tempfile
import urllib2
import subprocess
import sys
if sys.version_info[0] < 3:
from urllib2 import urlopen
else:
from urllib.request import urlopen
def tempdir(func):
def _tempdir(*args, **kwargs):
test_dir = tempfile.mkdtemp()
......@@ -61,7 +65,7 @@ def test_full():
f.write(SIMPLE_BUILDOUT)
with open('bootstrap.py', 'w') as f:
f.write(urllib2.urlopen(BOOTSTRAP).read())
f.write(urlopen(BOOTSTRAP).read())
os.system('bin/python bootstrap.py --distribute')
os.system('bin/buildout -q')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment