aboutsummaryrefslogtreecommitdiff
path: root/absl/tests/app_test.py
diff options
context:
space:
mode:
authorYilei Yang <yileiyang@google.com>2021-03-04 10:28:02 -0800
committerCopybara-Service <copybara-worker@google.com>2021-03-04 10:28:24 -0800
commitf08f3b154ffcd3d7ea0a398564329d843c59499c (patch)
tree05673d5270122a5c3c116495610404800ca2d813 /absl/tests/app_test.py
parent28b57668dbc08573e36c77d4066414d9440cd571 (diff)
downloadabsl-py-f08f3b154ffcd3d7ea0a398564329d843c59499c.tar.gz
Expose the --test_tmpdir and --test_srcdir flags as public flag holders.
They are considered as public flags and callers should use them instead of accessing FLAGS.test_tmpdir and FLAGS.test_srcdir. PiperOrigin-RevId: 360948844 Change-Id: Ib3673ae55ad9b55000fb80ba60647a93fdfc0426
Diffstat (limited to 'absl/tests/app_test.py')
-rw-r--r--absl/tests/app_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/tests/app_test.py b/absl/tests/app_test.py
index 9494979..c879f76 100644
--- a/absl/tests/app_test.py
+++ b/absl/tests/app_test.py
@@ -245,7 +245,7 @@ class FunctionalTests(absltest.TestCase):
# Pure python binary does not write to GWQ Status.
return
- tmpdir = tempfile.mkdtemp(dir=FLAGS.test_tmpdir)
+ tmpdir = tempfile.mkdtemp(dir=absltest.TEST_TMPDIR.value)
self.run_helper(
False,
arguments=['--raise_exception'],