Skip to content

Commit 0fa0547

Browse files
DinoVfacebook-github-bot
authored andcommitted
Always import importlib.util
Summary: An upstream change uses importlib.util after only importing importlib: python/cpython#138510 In normal CPython this gets mported via runpy so it pretty much always available. In our dev environment we don't import it, so this just makes sure it gets imported for test purposes. Reviewed By: yoney Differential Revision: D82228954 fbshipit-source-id: 86e1cd776d2a3819ffff9c6069613d141ab88dd1
1 parent 43b5f02 commit 0fa0547

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cinderx/TestScripts/cinder_test_runner312.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
import types
3131
import unittest
3232

33+
# CPython always imports this on startup, but cinder's dev environment doesn't
34+
from importlib import util
35+
3336
from pathlib import Path
3437

3538
from typing import Dict, IO, Iterable, List, Optional, Set, Tuple

0 commit comments

Comments
 (0)