Skip to content

Commit

Permalink
is_appengine=False in testbed (like it used to)
Browse files Browse the repository at this point in the history
Whether testbed tests "are appengine" is debatable, but historically
this function has returned False in testbed tests. This behavior was
inadvertently (and unnecessarily) changed in PR urllib3#1704.  This commit
undoes that regression for testbed tests.
  • Loading branch information
zevdg committed Nov 25, 2019
1 parent f5e3434 commit 44f2f59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/urllib3/contrib/_appengine_environ.py
Expand Up @@ -6,7 +6,9 @@


def is_appengine():
return "APPENGINE_RUNTIME" in os.environ
return "APPENGINE_RUNTIME" in os.environ and not os.environ.get(
"SERVER_SOFTWARE", ""
).startswith("testutil/")


def is_appengine_sandbox():
Expand Down

0 comments on commit 44f2f59

Please sign in to comment.