]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix module autoreload for __main__ with relative imports
authorSven <sven@inrain.org>
Fri, 9 Jun 2017 14:50:34 +0000 (16:50 +0200)
committerSven <sven@inrain.org>
Fri, 9 Jun 2017 14:50:34 +0000 (16:50 +0200)
commitc40cdb930b2a9335af0451ef51821d4f2838c61d
tree1e582d4f9506e3c1bcd797128149c2c120bfcf59
parent62e47215ce12aee83f951758c96775a43e80475b
Fix module autoreload for __main__ with relative imports

The fix works for Python >= 3.4, keeping the current workaround for previous
versions. Also introduce a first unit test for autoreload. Close #2044.
tornado/autoreload.py
tornado/test/autoreload_test.py [new file with mode: 0644]
tornado/test/import_test.py
tornado/test/runtests.py