Serhiy Storchaka added the comment: середа, 23-вер-2015 10:12:35 STINNER Victor написано: > New submission from STINNER Victor: > > The Lib/test/regrtest.py file became a monster. It's very long, it uses a > lot of global variables. It's hard to review and hard to maintain. I > propose to: > > - split single file regrtest.py into multiple files in a new > Lib/test/regrtest/ package
You can just mover parts of the code into utility files (or to the test.support package) without converting regrtest.py to a package. This preserves compatibility with running Lib/test/regrtest.py as a script. > - refactor the test runner as a class to avoid global variables Global variables are not evil in a script. Are there other reasons besides aesthetic? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25220> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com