[issue43627] What are the requirements for a test_sundry-testable script in Tools/scripts?

Zachary Ware report at bugs.python.org
Thu Apr 15 22:55:16 EDT 2021


Zachary Ware <zachary.ware at gmail.com> added the comment:

`test_sundry` just checks to see if the script is importable, so if your script runs on import it may very well cause problems :).  Adding it to a skip list is a reasonable solution, as is making the script import-friendly (e.g. with a `if __name__ == '__main__'` check).

----------
nosy: +zach.ware

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43627>
_______________________________________


More information about the Python-bugs-list mailing list