

def test_file_upload(self):
    (fd, t) = tempfile.mkstemp()
    os.close(fd)
    try:
        self.client.post('/path/data', 'foobar.png', file=open(fd, 'rb'))
    finally:
        os.unlink(t)

dataset/ETHPy150Open smartfile/client-python/tests.py UploadTestCase.test_file_upload/VarMisuse@47/59 `t`->`fd`