MCPcopy Index your code
hub / github.com/python/cpython / test_or

Method test_or

Lib/test/test_annotationlib.py:2009–2013  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2007 form[""]
2008
2009 def test_or(self):
2010 X = ForwardRef("X")
2011 # __or__/__ror__ itself
2012 self.assertEqual(X | "x", Union[X, "x"])
2013 self.assertEqual("x" | X, Union["x", X])
2014
2015 def test_multiple_ways_to_create(self):
2016 X1 = Union["X"]

Callers

nothing calls this directly

Calls 2

ForwardRefClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected