Wind River Support Network

HomeDefectsLIN6-3448
Fixed

LIN6-3448 : Python: assert does not work

Created: Apr 25, 2013    Updated: Mar 10, 2016
Resolved Date: Aug 28, 2013
Previous ID: LIN5-6955, LIN6-2842
Found In Version: 6.0
Fix Version: 6.0
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Problem Description
======================
python assert does not work in wrlinux

Expected Behavior
======================
# python
Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 'a' == 'b'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> 

Observed Behavior
======================
# python
Python 2.7.2 (default, Apr 15 2013, 10:26:44) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 'A' == 'B'
>>> 

Logs
======================

Misc Info 
======================



Steps to Reproduce

Assert in wrlinux

# python
Python 2.7.2 (default, Apr 15 2013, 10:26:44) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 'A' == 'B'
>>> 

Assert in ubuntu:
# python
Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> assert 'a' == 'b'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AssertionError
>>> 

Live chat
Online