File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def environ_at_init():
4848 :returns: Either ``'-GAE'`` if on App Engine else ``None``
4949 """
5050 if appengine is not None :
51- return '-GAE'
51+ return '-GAE' # pragma: NO COVER
5252
5353 def environ_post_init (self ):
5454 """Checks environment variables after instance initialization.
@@ -60,7 +60,7 @@ def environ_post_init(self):
6060 """
6161 gce_environ = self .check_compute_engine ()
6262 if gce_environ is not None :
63- return gce_environ
63+ return gce_environ # pragma: NO COVER
6464
6565 return ''
6666
@@ -77,9 +77,9 @@ def check_compute_engine():
7777 connection = httplib .HTTPConnection (host , timeout = 0.1 )
7878 try :
7979 connection .request ('GET' , uri_path , headers = headers )
80- response = connection .getresponse ()
81- if response .status == 200 :
82- return '-GCE'
80+ response = connection .getresponse () # pragma: NO COVER
81+ if response .status == 200 : # pragma: NO COVER
82+ return '-GCE' # pragma: NO COVER
8383 except socket .error : # Expect timeout or host is down
8484 pass
8585 finally :
You can’t perform that action at this time.
0 commit comments