Skip to content

Commit 8aa3f60

Browse files
committed
tweak comments in tests
1 parent 2fd3507 commit 8aa3f60

File tree

1 file changed

+5
-9
lines changed
  • exporter/opentelemetry-exporter-otlp-json-common/tests

1 file changed

+5
-9
lines changed

exporter/opentelemetry-exporter-otlp-json-common/tests/__init__.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@
4141
set_span_in_context,
4242
)
4343

44-
# ---------------------------------------------------------------------------
45-
# Shared constants
46-
# ---------------------------------------------------------------------------
47-
4844
TRACE_ID = 0x3E0C63257DE34C926F9EFCD03927272E
4945
SPAN_ID = 0x34BF92DEEFC58C92
5046
PARENT_SPAN_ID = 0x1111111111111111
@@ -60,11 +56,11 @@ def _is_none_equivalent(val_a, val_b):
6056
and the other is the empty/zero default for that type.
6157
6258
Only None and type-matching empty defaults are considered equivalent:
63-
None == [] (empty list)
64-
None == "" (empty string)
65-
None == b"" (empty bytes)
66-
None == 0 (zero int)
67-
None == 0.0 (zero float)
59+
None ~= [] (empty list)
60+
None ~= "" (empty string)
61+
None ~= b"" (empty bytes)
62+
None ~= 0 (zero int)
63+
None ~= 0.0 (zero float)
6864
"""
6965
if val_a is None and val_b is None:
7066
return True

0 commit comments

Comments
 (0)