aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--absl/tests/app_test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/absl/tests/app_test.py b/absl/tests/app_test.py
index d5435d2..9494979 100644
--- a/absl/tests/app_test.py
+++ b/absl/tests/app_test.py
@@ -20,6 +20,7 @@ from __future__ import print_function
import codecs
import contextlib
+import copy
import os
import re
import subprocess
@@ -313,6 +314,14 @@ class FunctionalTests(absltest.TestCase):
self.assertIn('during real_main', stdout)
+class FlagDeepCopyTest(absltest.TestCase):
+ """Make sure absl flags are copy.deepcopy() compatible."""
+
+ def test_deepcopyable(self):
+ copy.deepcopy(FLAGS)
+ # Nothing to assert
+
+
class FlagValuesExternalizationTest(absltest.TestCase):
"""Test to make sure FLAGS can be serialized out and parsed back in."""