User Tools

Site Tools


dev:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:python [2016/03/11 12:34] oschuettdev:python [2016/03/11 12:52] oschuett
Line 6: Line 6:
 All python scripts should support self-testing. This means that the script can be invoked with ''%%--selftest%%'' as its sole argument.  All python scripts should support self-testing. This means that the script can be invoked with ''%%--selftest%%'' as its sole argument. 
  
-Ideally, a script's self-test consists of an exhaustive suite of unit-test. At the very least, it should not crash or break anything. Even an empty self-test will still reveal syntax and import errors, which are the most common Python 3 compatibility issues.+Ideally, a script's self-test consists of an exhaustive suite of unit-tests. At the very least, it should not crash or break anything. Even an empty self-test will still reveal syntax and import errors, which are the most common Python 3 compatibility issues.
  
 Once per night all Python executable are [[https://dashboard.cp2k.org/archive/python/index.html|self-tested automatically]]. Once per night all Python executable are [[https://dashboard.cp2k.org/archive/python/index.html|self-tested automatically]].
dev/python.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1