Repository: incubator-beam
Updated Branches:
  refs/heads/python-sdk c4208a899 -> 384fb5dc1


Also check coder determinism.


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/0a078c04
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/0a078c04
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/0a078c04

Branch: refs/heads/python-sdk
Commit: 0a078c04b89aee42413d3af9b3fb44b67cc2812b
Parents: ab02a1d
Author: Robert Bradshaw <rober...@google.com>
Authored: Wed Nov 9 13:56:31 2016 -0800
Committer: Robert Bradshaw <rober...@google.com>
Committed: Tue Nov 15 10:48:35 2016 -0800

----------------------------------------------------------------------
 sdks/python/apache_beam/coders/coders_test_common.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/0a078c04/sdks/python/apache_beam/coders/coders_test_common.py
----------------------------------------------------------------------
diff --git a/sdks/python/apache_beam/coders/coders_test_common.py 
b/sdks/python/apache_beam/coders/coders_test_common.py
index 2ec8e7f..bfd4d77 100644
--- a/sdks/python/apache_beam/coders/coders_test_common.py
+++ b/sdks/python/apache_beam/coders/coders_test_common.py
@@ -91,6 +91,8 @@ class CodersTest(unittest.TestCase):
     copy2 = dill.loads(dill.dumps(coder))
     for v in values:
       self.assertEqual(v, copy1.decode(copy2.encode(v)))
+      if coder.is_deterministic():
+        self.assertEqual(copy1.encode(v), copy2.encode(v))
 
   def test_custom_coder(self):
 

Reply via email to