You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by pa...@apache.org on 2018/04/30 23:15:28 UTC
[beam] 02/02: Changed import from examples.snippets to io.utils
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
commit 9d75d06643f0d443ede4d172cca2c5d8b3c5ef65
Author: Javier Antonio Gonzalez Trejo <ja...@gmail.com>
AuthorDate: Thu Apr 26 23:34:39 2018 -0500
Changed import from examples.snippets to io.utils
---
sdks/python/apache_beam/transforms/ptransform_test.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdks/python/apache_beam/transforms/ptransform_test.py b/sdks/python/apache_beam/transforms/ptransform_test.py
index 350a19f..e23fad7 100644
--- a/sdks/python/apache_beam/transforms/ptransform_test.py
+++ b/sdks/python/apache_beam/transforms/ptransform_test.py
@@ -182,7 +182,7 @@ class PTransformTest(unittest.TestCase):
@attr('ValidatesRunner')
def test_read_metrics(self):
- from apache_beam.examples.snippets.snippets import CountingSource
+ from apache_beam.io.utils import CountingSource
class CounterDoFn(beam.DoFn):
def __init__(self):
@@ -197,7 +197,7 @@ class PTransformTest(unittest.TestCase):
(pipeline | Read(CountingSource(100)) | beam.ParDo(CounterDoFn()))
res = pipeline.run()
res.wait_until_finish()
- # This counter is defined in snippets.CountingSource.
+ # This counter is defined in utils.CountingSource.
metric_results = res.metrics().query(MetricsFilter()
.with_name('recordsRead'))
outputs_counter = metric_results['counters'][0]
--
To stop receiving notification emails like this one, please contact
pabloem@apache.org.