This is an automated email from the ASF dual-hosted git repository.

pabloem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 442ad98  [BEAM-9715] Ensuring annotations_test passes in all 
environments(Win/*nix)
     new ea54794  Merge pull request #11329 from [BEAM-9715] Ensuring 
annotations_test passes in all environments
442ad98 is described below

commit 442ad98ddd9a9828d9f763cdb31908491accace1
Author: Pablo Estrada <[email protected]>
AuthorDate: Tue Apr 7 11:21:34 2020 -0700

    [BEAM-9715] Ensuring annotations_test passes in all environments(Win/*nix)
---
 sdks/python/apache_beam/utils/annotations_test.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sdks/python/apache_beam/utils/annotations_test.py 
b/sdks/python/apache_beam/utils/annotations_test.py
index e4820ed..dce48b2 100644
--- a/sdks/python/apache_beam/utils/annotations_test.py
+++ b/sdks/python/apache_beam/utils/annotations_test.py
@@ -29,6 +29,12 @@ from apache_beam.utils.annotations import experimental
 class AnnotationTests(unittest.TestCase):
   # Note: use different names for each of the the functions decorated
   # so that a warning is produced for each of them.
+
+  def setUp(self):
+    # This is necessary to ensure warnings are captured in all
+    # platforms (Windows/Unix).
+    warnings.resetwarnings()
+
   def test_deprecated_with_since_current_message(self):
     with warnings.catch_warnings(record=True) as w:
 

Reply via email to