[Python-modules-commits] [raven] 04/06: tests: import reload for Python 3
Vincent Bernat
bernat at moszumanska.debian.org
Tue Feb 28 10:45:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to branch master
in repository raven.
commit 54dc57ef750a08f2c804f3c9393bef88db16e5c1
Author: Vincent Bernat <vincent at bernat.im>
Date: Tue Feb 28 11:32:14 2017 +0100
tests: import reload for Python 3
---
tests/transport/gevent/tests.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/transport/gevent/tests.py b/tests/transport/gevent/tests.py
index 22c3e90..ad667c1 100644
--- a/tests/transport/gevent/tests.py
+++ b/tests/transport/gevent/tests.py
@@ -9,6 +9,11 @@ from raven.utils.testutils import TestCase
from raven.base import Client
from raven.transport.gevent import GeventedHTTPTransport
+try:
+ from importlib import reload
+except ImportError:
+ from imp import reload
+
class GeventTransportTest(TestCase):
def setUp(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/raven.git
More information about the Python-modules-commits
mailing list