GNOME Bugzilla – Bug 332586
pygst.require should raise an error based on StandardError and not AssertionError
Last modified: 2006-02-27 16:26:04 UTC
Please describe the problem: Running "python -O" will disable assertion errors, therefore in this type of semantics an error extending StandardError would be more appropriate. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Fixed in CVS, thanks. 2006-02-27 Edward Hervey <edward@fluendo.com> * pygst.py.in: use 'raise StandardError' instead of 'assert' so that compiled code raise a noticeable exception. Closes #332586