We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a086a88 + 020e460 commit 4952f23Copy full SHA for 4952f23
nova/tests/unit/virt/libvirt/test_host.py
@@ -1970,4 +1970,4 @@ def test_loaders(self):
1970
])
1971
mock_glob.assert_called_once_with(
1972
'/usr/share/qemu/firmware/*.json')
1973
- mock_open.assert_called_once_with('10_fake.json')
+ mock_open.assert_called_once_with('10_fake.json', 'rb')
nova/virt/libvirt/host.py
@@ -108,7 +108,7 @@ def _get_loaders():
108
continue
109
110
for spec_path in sorted(glob.glob(f'{path}/*.json')):
111
- with open(spec_path) as fh:
+ with open(spec_path, 'rb') as fh:
112
spec = jsonutils.load(fh)
113
114
_loaders.append(spec)
0 commit comments