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.
1 parent 599cfea commit be6901cCopy full SHA for be6901c
bpython/test/test_curtsies_repl.py
@@ -6,6 +6,7 @@
6
import sys
7
import tempfile
8
import io
9
+import importlib
10
from functools import partial
11
from contextlib import contextmanager
12
from six.moves import StringIO
@@ -291,6 +292,8 @@ def setUp(self):
291
292
self.open = partial(io.open, mode='wt', encoding='utf-8')
293
self.dont_write_bytecode = sys.dont_write_bytecode
294
sys.dont_write_bytecode = True
295
+ if py3:
296
+ importlib.invalidate_caches()
297
298
def tearDown(self):
299
sys.dont_write_bytecode = self.dont_write_bytecode
0 commit comments