summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/common/test_glance_service.py
diff options
context:
space:
mode:
authorDmitry Tantsur <dtantsur@protonmail.com>2021-01-22 17:52:21 +0100
committerDmitry Tantsur <dtantsur@protonmail.com>2021-02-18 10:16:57 +0100
commit6e09a008ab571e3536ccba8fe3557ad22d551564 (patch)
tree52427815cbc962048d80f61b6fe28a5b4b75aa74 /ironic/tests/unit/common/test_glance_service.py
parent3858b95204a18e76532536fcde31b45761a05b81 (diff)
downloadironic-6e09a008ab571e3536ccba8fe3557ad22d551564.tar.gz
Replace pysendfile with os.sendfile
Change-Id: I1ef33d41fd3784f55929fa6a086fca0c335212e5
Diffstat (limited to 'ironic/tests/unit/common/test_glance_service.py')
-rw-r--r--ironic/tests/unit/common/test_glance_service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/tests/unit/common/test_glance_service.py b/ironic/tests/unit/common/test_glance_service.py
index 4f4a73a95..f0e9f1002 100644
--- a/ironic/tests/unit/common/test_glance_service.py
+++ b/ironic/tests/unit/common/test_glance_service.py
@@ -228,7 +228,7 @@ class TestGlanceImageService(base.TestCase):
'image contains no data',
self.service.download, image_id)
- @mock.patch('sendfile.sendfile', autospec=True)
+ @mock.patch('os.sendfile', autospec=True)
@mock.patch('os.path.getsize', autospec=True)
@mock.patch('%s.open' % __name__, new=mock.mock_open(), create=True)
def test_download_file_url(self, mock_getsize, mock_sendfile):