Wind River Support Network

HomeDefectsLIN5-6950
Fixed

LIN5-6950 : Python: assert does not work

Created: Apr 25, 2013    Updated: Dec 19, 2017
Resolved Date: Jun 8, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.4
Severity: Severe
Applicable for: Wind River Linux 5
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
>>> 

Other Downloads


Live chat
Online