

@staticmethod
def test_links():
    if hasattr(os, 'link'):
        tempfile = (__file__ + '.tmp')
        try:
            os.link(__file__, tempfile)
        except OSError as e:
            if (e.errno == 1):
                del os.link
            else:
                raise
        finally:
            if os.path.exists(tempfile):
                os.remove(tempfile)

dataset/ETHPy150Open GaretJax/django-click/setup.py Setup.test_links/original