Skip to content

Commit

Permalink
docs(samples): Replace APPENGINE_RUNTIME with GAE_ENV (#1893)
Browse files Browse the repository at this point in the history
GAE_ENV is available in gen1 and gen2 runtimes.

Signed-off-by: Andres Botero <botero@google.com>

Signed-off-by: Andres Botero <botero@google.com>
Co-authored-by: Andres Botero <botero@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Aug 30, 2022
1 parent 070d2d5 commit af3160d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion googleapiclient/discovery_cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def autodetect():
googleapiclient.discovery_cache.base.Cache, a cache object which
is auto detected, or None if no cache object is available.
"""
if "APPENGINE_RUNTIME" in os.environ:
if "GAE_ENV" in os.environ:
try:
from . import appengine_memcache

Expand Down
2 changes: 1 addition & 1 deletion tests/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ def test_single_500_then_404_retries_and_succeeds(self):
class DiscoveryFromAppEngineCache(unittest.TestCase):
def setUp(self):
self.old_environ = os.environ.copy()
os.environ["APPENGINE_RUNTIME"] = "python27"
os.environ["GAE_ENV"] = "standard"

def tearDown(self):
os.environ = self.old_environ
Expand Down

0 comments on commit af3160d

Please sign in to comment.