Message6437
John,
Thanks for testing the test case in python2. I didn't think of it. To
help me write the test case I came up with this matrix for the names in
the expression:
Name Python3 w/o fix Python2 Fix
context Y Y Y
x Y
user_realnames Y Y
assignedto Y Y
realname Y
If you look at the expression you will realize that only context and
user_realnames are external variables, and so are required. It doesn't
matter if x is there or not since it is local and initialized, and
assignedto and realname are members of context and x, respectively.
I updated and ran the test case with these results:
~/src/tracker-new/roundup-code$ python2 run_tests.py test/test_pythonexpr.py
====================================== test session starts
=======================================
platform linux2 -- Python 2.7.12, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/tekberg/src/tracker-new/roundup-code, inifile:
collected 1 items
test/test_pythonexpr.py .
==================================== 1 passed in 0.02 seconds
====================================
~/src/tracker-new/roundup-code$ python run_tests.py test/test_pythonexpr.py
====================================== test session starts
=======================================
platform linux -- Python 3.5.2, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/tekberg/src/tracker-new/roundup-code, inifile:
collected 1 items
test/test_pythonexpr.py .
==================================== 1 passed in 0.04 seconds
==================================== |
|
Date |
User |
Action |
Args |
2019-03-26 15:55:35 | tekberg | set | messageid: <1553615735.48.0.919876624274.issue2551026@roundup.psfhosted.org> |
2019-03-26 15:55:35 | tekberg | set | recipients:
+ tekberg, rouilj, joseph_myers |
2019-03-26 15:55:35 | tekberg | link | issue2551026 messages |
2019-03-26 15:55:35 | tekberg | create | |
|