update reload unit test
This commit is contained in:
parent
57f2f876d3
commit
6fe23887b8
@ -1,4 +1,4 @@
|
||||
import tempfile, os, sys, shutil
|
||||
import tempfile, os, sys, shutil, time
|
||||
import pyqtgraph as pg
|
||||
import pyqtgraph.reload
|
||||
|
||||
@ -64,7 +64,8 @@ def test_reload():
|
||||
|
||||
# write again and reload
|
||||
open(mod, 'w').write(code.format(path_repr=pgpath_repr, msg="C.fn() Version2"))
|
||||
remove_cache(mod)
|
||||
time.sleep(1.1)
|
||||
#remove_cache(mod)
|
||||
result1 = pg.reload.reloadAll(path, debug=True)
|
||||
if py3:
|
||||
v2 = (reload_test_mod.C, reload_test_mod.C.sig, reload_test_mod.C.fn, c.sig, c.fn, c.fn.__func__)
|
||||
@ -88,7 +89,8 @@ def test_reload():
|
||||
|
||||
# write again and reload
|
||||
open(mod, 'w').write(code.format(path_repr=pgpath_repr, msg="C.fn() Version2"))
|
||||
remove_cache(mod)
|
||||
time.sleep(1.1)
|
||||
# remove_cache(mod)
|
||||
result2 = pg.reload.reloadAll(path, debug=True)
|
||||
if py3:
|
||||
v3 = (reload_test_mod.C, reload_test_mod.C.sig, reload_test_mod.C.fn, c.sig, c.fn, c.fn.__func__)
|
||||
|
Loading…
Reference in New Issue
Block a user