__init__.py (ec2-api-14.0.1) | : | __init__.py (ec2-api-15.0.0) | ||
---|---|---|---|---|
skipping to change at line 25 | skipping to change at line 25 | |||
""" | """ | |||
:mod:`ec2api.tests.unit.unit` -- EC2api Unittests | :mod:`ec2api.tests.unit.unit` -- EC2api Unittests | |||
===================================================== | ===================================================== | |||
.. automodule:: ec2api.tests.unit.unit | .. automodule:: ec2api.tests.unit.unit | |||
:platform: Unix | :platform: Unix | |||
""" | """ | |||
# See http://code.google.com/p/python-nose/issues/detail?id=373 | # See http://code.google.com/p/python-nose/issues/detail?id=373 | |||
# The code below enables nosetests to work with i18n _() blocks | # The code below enables nosetests to work with i18n _() blocks | |||
from six.moves import builtins | import builtins | |||
setattr(builtins, '_', lambda x: x) | setattr(builtins, '_', lambda x: x) | |||
# NOTE(ft): this is required by test_s3.S3APITestCase to switch execution | # NOTE(ft): this is required by test_s3.S3APITestCase to switch execution | |||
# between test and server threads | # between test and server threads | |||
import eventlet # noqa: E402 | import eventlet # noqa: E402 | |||
eventlet.monkey_patch(socket=True) | eventlet.monkey_patch(socket=True) | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |