After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 332586 - pygst.require should raise an error based on StandardError and not AssertionError
pygst.require should raise an error based on StandardError and not AssertionE...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
0.10.3
Other All
: Normal normal
: 0.10.3
Assigned To: GStreamer Maintainers
Johan (not receiving bugmail) Dahlin
Depends on:
Blocks:
 
 
Reported: 2006-02-26 00:27 UTC by Tiago Cogumbreiro
Modified: 2006-02-27 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tiago Cogumbreiro 2006-02-26 00:27:43 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:
Comment 1 Edward Hervey 2006-02-27 16:26:04 UTC
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