[py3] Fix comparison of cardinality when maxvalue is graph_nodes.INFINITY

6 jobs for topic/default/fix-cardinality in 26 minutes and 8 seconds (queued for 8 seconds)