tests/readlink.py
author Mads Kiilerich <mads@kiilerich.com>
Wed, 16 Feb 2011 04:28:11 +0100
changeset 13423 4e60dad2261f
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
tests: test https through http proxy These tests fails for me with Python 2.6(.nothing)

#!/usr/bin/env python

import errno, os, sys

for f in sys.argv[1:]:
    try:
        print f, '->', os.readlink(f)
    except OSError, err:
        if err.errno != errno.EINVAL:
            raise
        print f, 'not a symlink'

sys.exit(0)