We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 503bf5a commit 1b05c0eCopy full SHA for 1b05c0e
cirq/google/arg_func_langs_test.py
@@ -105,7 +105,12 @@ def test_serialize_sympy_constants():
105
including_default_value_fields=True,
106
preserving_proto_field_name=True,
107
use_integers_for_enums=True)
108
- assert packed == {'arg_value': {'float_value': float(np.float32(sympy.pi))}}
+ # protobuf 3.12+ truncates floats to 4 bytes
109
+ assert packed == {
110
+ 'arg_value': {
111
+ 'float_value': float(str(np.float32(sympy.pi)))
112
+ }
113
114
115
116
def test_unsupported_function_language():
requirements.txt
@@ -7,7 +7,7 @@ matplotlib~=3.0
7
networkx~=2.4
8
numpy~=1.16
9
pandas
10
-protobuf==3.8.0
+protobuf~=3.12.0
11
requests~=2.18
12
sortedcontainers~=2.0
13
scipy
0 commit comments