Show More
@@ -4,7 +4,7 b'' | |||
|
4 | 4 | # Copyright (c) IPython Development Team. |
|
5 | 5 | # Distributed under the terms of the Modified BSD License. |
|
6 | 6 | |
|
7 | import os | |
|
7 | from pathlib import Path | |
|
8 | 8 | |
|
9 | 9 | import nose.tools as nt |
|
10 | 10 | |
@@ -16,9 +16,10 b' def test_deepreload():' | |||
|
16 | 16 | "Test that dreload does deep reloads and skips excluded modules." |
|
17 | 17 | with TemporaryDirectory() as tmpdir: |
|
18 | 18 | with prepended_to_syspath(tmpdir): |
|
19 | with open(os.path.join(tmpdir, 'A.py'), 'w') as f: | |
|
19 | tmpdirpath = Path(tmpdir) | |
|
20 | with open( tmpdirpath / 'A.py' , 'w') as f: | |
|
20 | 21 | f.write("class Object(object):\n pass\n") |
|
21 |
with open( |
|
|
22 | with open( tmpdirpath / 'B.py' , 'w') as f: | |
|
22 | 23 | f.write("import A\n") |
|
23 | 24 | import A |
|
24 | 25 | import B |
General Comments 0
You need to be logged in to leave comments.
Login now