github-code-scanning[bot] commented on code in PR #2249:
URL: https://github.com/apache/avro/pull/2249#discussion_r1204473982


##########
lang/py/avro/test/test_io.py:
##########
@@ -185,6 +186,23 @@
             {"type": "record", "name": "ns.long", "fields": [{"name": "value", 
"type": "int"}, {"name": "next", "type": ["null", "ns.long"]}]},
             {"value": 0, "next": {"value": 1, "next": None}},
         ),
+        # Optional logical types.
+        (
+            [{"logicalType": "uuid", "type": "string"}, "null"],
+            None,
+        ),
+        (
+            [{"logicalType": "uuid", "type": "string"}, "null"],
+            uuid.uuid4().hex,
+        ),
+        (
+            [{"type": "long", "logicalType": "timestamp-millis"}, "null"],
+            datetime.datetime(1000, 1, 1, 0, 0, 0, 000000, 
tzinfo=avro.timezones.utc),

Review Comment:
   ## Confusing octal literal
   
   Confusing octal literal, use 0o00000 instead.
   
   [Show more 
details](https://github.com/apache/avro/security/code-scanning/2988)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to