nuxeo / FunkLoad

Functional and load testing framework for web applications, written in Python
http://funkload.nuxeo.org/
GNU General Public License v2.0
381 stars 83 forks source link

Python 2.7 error + code for fix #10

Closed zunzun closed 13 years ago

zunzun commented 13 years ago

Unittest in Python 2.7 does not include _exc_info(), which means as people upgrade to the new version of Ubuntu Linux you will increasingly see complaints and questions relating to the non-existence of this code, instead of funkload users seeing their previously working test code's test failure information.

Adding the following code:

def _exc_info(self):
    return sys.exc_info()

to FunkLoadTestCase fixed this for me (I added it to my derived classes).

Please see here: http://www.gossamer-threads.com/lists/python/python/732128 where Python's unittest.py replaced _exc_info() with sys.exc_info().

 James
bdelbosc commented 13 years ago

Hi,

you are right version 1.15.0 does not work with Python 2.7, but the trunk version available as a snapshot package should work, give it a try:

sudo easy_install -f http://funkload.nuxeo.org/snapshots/ -U funkload

Thanks for your report

Regards

ben

zunzun commented 13 years ago

Thank you.

 James

On Sun, May 1, 2011 at 11:29 AM, bdelbosc < reply@reply.github.com>wrote:

Hi,

you are right version 1.15.0 does not work with Python 2.7, but the trunk version available as a snapshot package should work, give it a try:

sudo easy_install -f http://funkload.nuxeo.org/snapshots/ -U funkload

Thanks for your report

Regards

ben

Reply to this email directly or view it on GitHub: https://github.com/nuxeo/FunkLoad/issues/10#comment_1084364