Commit a64f2c39 authored by Jason R. Coombs's avatar Jason R. Coombs

Allow the test to fail on its own merits rather than failing with a...

Allow the test to fail on its own merits rather than failing with a not-so-useful message; removed Python 2.3 support.
parent f9a347b1
#!/usr/bin/env python
import sys
if sys.version_info[0] >= 3:
raise NotImplementedError('Py3 not supported in this test yet')
import sys
import os
import shutil
import tempfile
import subprocess
from distutils.command.install import INSTALL_SCHEMES
from string import Template
from setuptools.compat import urlopen
try:
import subprocess
def _system_call(*args):
def _system_call(*args):
assert subprocess.call(args) == 0
except ImportError:
# Python 2.3
def _system_call(*args):
# quoting arguments if windows
if sys.platform == 'win32':
def quote(arg):
if ' ' in arg:
return '"%s"' % arg
return arg
args = [quote(arg) for arg in args]
assert os.system(' '.join(args)) == 0
def tempdir(func):
def _tempdir(*args, **kwargs):
......
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