Skip to content

Commit af3160d

Browse files
aboteroAndres Boteroparthea
authored
docs(samples): Replace APPENGINE_RUNTIME with GAE_ENV (#1893)
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>
1 parent 070d2d5 commit af3160d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

googleapiclient/discovery_cache/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def autodetect():
3434
googleapiclient.discovery_cache.base.Cache, a cache object which
3535
is auto detected, or None if no cache object is available.
3636
"""
37-
if "APPENGINE_RUNTIME" in os.environ:
37+
if "GAE_ENV" in os.environ:
3838
try:
3939
from . import appengine_memcache
4040

tests/test_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def test_single_500_then_404_retries_and_succeeds(self):
12051205
class DiscoveryFromAppEngineCache(unittest.TestCase):
12061206
def setUp(self):
12071207
self.old_environ = os.environ.copy()
1208-
os.environ["APPENGINE_RUNTIME"] = "python27"
1208+
os.environ["GAE_ENV"] = "standard"
12091209

12101210
def tearDown(self):
12111211
os.environ = self.old_environ

0 commit comments

Comments
 (0)