def test_read_pypirc(self):
        # Guard to make sure we don't write an actual file by mistake
        try:
            fp = open(op.join(op.expanduser("~"), ".pypirc"), "rt")
            fp.close()
            raise ValueError()
        except __HOLE__:
            pass

        fp = open(op.join(op.expanduser("~"), ".pypirc"), "wt")
        try:
            fp.write("")
        finally:
            fp.close()
dataset/ETHPy150Open cournape/Bento/bento/pypi/tests/test_register_utils.py/TestReadPyPIDefault.test_read_pypirc