python 3: long type error

Bug #1403226 reported by Aaron Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
Fix Released
Undecided
Unassigned

Bug Description

2014-12-16 21:38:21.832 |
2014-12-16 21:38:21.832 | Failed to import test module: congress.tests.test_utils
2014-12-16 21:38:21.832 | Traceback (most recent call last):
2014-12-16 21:38:21.832 | File "/home/jenkins/workspace/gate-congress-python34/.tox/py34/lib/python3.4/site-packages/unittest2/loader.py", line 445, in _find_test_path
2014-12-16 21:38:21.832 | module = self._get_module_from_name(name)
2014-12-16 21:38:21.832 | File "/home/jenkins/workspace/gate-congress-python34/.tox/py34/lib/python3.4/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
2014-12-16 21:38:21.832 | __import__(name)
2014-12-16 21:38:21.832 | File "/home/jenkins/workspace/gate-congress-python34/congress/tests/test_utils.py", line 34
2014-12-16 21:38:21.832 | self.assertEqual(456L, utils.value_to_congress(456L))
2014-12-16 21:38:21.832 | ^
2014-12-16 21:38:21.833 | SyntaxError: invalid syntax
2014-12-16 21:38:21.833 | /home/jenkins/workspace/gate-congress-python34/.tox/py34/lib/python3.4/site-packages/setuptools/dist.py:298: UserWarning: The version specified ('1.0.0a1.306.g65212a5') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
2014-12-16 21:38:21.833 | "details." % self.metadata.version
2014-12-16 21:38:21.833 | Non-zero exit code (2) from test listing.
2014-12-16 21:38:21.833 | error: testr failed (3)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/142237
Committed: https://git.openstack.org/cgit/stackforge/congress/commit/?id=9a1e3126268f182c70745e927e418e1a1e78ba55
Submitter: Jenkins
Branch: master

commit 9a1e3126268f182c70745e927e418e1a1e78ba55
Author: Aaron Rosen <email address hidden>
Date: Tue Dec 16 14:04:08 2014 -0800

    Python 3: Remove long value check

    In python 3 the two types int and long have been unified into one. This
    patch fixes a syntax error that would occur in python3 and ensures that
    we test it when using python 2.

    closes-bug: 1403226
    Partially implements blueprint: support-python3

    Change-Id: Idd05bba57cdf3b384ed2e11817e97d21518ec980

Changed in congress:
status: New → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → kilo-3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.