Message251420
середа, 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? |
|
Date |
User |
Action |
Args |
2015-09-23 11:06:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, jkloth, ezio.melotti |
2015-09-23 11:06:39 | serhiy.storchaka | link | issue25220 messages |
2015-09-23 11:06:39 | serhiy.storchaka | create | |
|