1
0
mirror of https://github.com/django/django.git synced 2025-03-23 07:40:44 +00:00
Jon Dufresne 9b9c8c4a81 Fixed #27368 -- Modifed BaseEmailBackend.__enter__() to close the connection if an exception occurs.
Fixes unclosed socket ResourceWarning in mail test.

Thanks Claude Paroz for the review.
2016-10-21 05:59:07 -07:00
..
2013-12-24 12:25:17 +01:00
2015-08-22 20:25:42 +02:00
2015-04-27 08:40:36 -04:00
2015-08-22 20:25:42 +02:00
2016-07-21 10:08:19 -04:00
2015-02-06 12:58:45 +01:00

To run the test suite::

    $ cd tests
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ PYTHONPATH=..:$PYTHONPATH ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.