File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212from IPython .utils .tempdir import TemporaryDirectory
1313from IPython .lib .deepreload import reload as dreload
1414
15+
1516def test_deepreload ():
1617 "Test that dreload does deep reloads and skips excluded modules."
1718 with TemporaryDirectory () as tmpdir :
1819 with prepended_to_syspath (tmpdir ):
1920 tmpdirpath = Path (tmpdir )
20- with open ( tmpdirpath / ' A.py' , 'w' ) as f :
21+ with open (tmpdirpath / " A.py" , "w" ) as f :
2122 f .write ("class Object(object):\n pass\n " )
22- with open ( tmpdirpath / ' B.py' , 'w' ) as f :
23+ with open (tmpdirpath / " B.py" , "w" ) as f :
2324 f .write ("import A\n " )
2425 import A
2526 import B
2627
2728 # Test that A is not reloaded.
2829 obj = A .Object ()
29- dreload (B , exclude = ['A' ])
30+ dreload (B , exclude = ["A" ])
3031 nt .assert_true (isinstance (obj , A .Object ))
3132
3233 # Test that A is reloaded.
You can’t perform that action at this time.
0 commit comments