File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test_haystack/elasticsearch2_tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ def setup():
17
17
raise ImportError
18
18
from elasticsearch import Elasticsearch , exceptions
19
19
except ImportError :
20
- self . log .error ("'elasticsearch>=2.0.0,<3.0.0' not installed." , exc_info = True )
20
+ log .error ("'elasticsearch>=2.0.0,<3.0.0' not installed." , exc_info = True )
21
21
raise unittest .SkipTest ("'elasticsearch>=2.0.0,<3.0.0' not installed." )
22
22
23
23
url = settings .HAYSTACK_CONNECTIONS ['elasticsearch' ]['URL' ]
24
24
es = Elasticsearch (url )
25
25
try :
26
26
es .info ()
27
27
except exceptions .ConnectionError as e :
28
- self . log .error ("elasticsearch not running on %r" % url , exc_info = True )
28
+ log .error ("elasticsearch not running on %r" % url , exc_info = True )
29
29
raise unittest .SkipTest ("elasticsearch not running on %r" % url , e )
You can’t perform that action at this time.
0 commit comments