Commit 68af6070 authored by Michael Arntzenius's avatar Michael Arntzenius

add operator__name__ test

The builtin functions in the `operator' module are missing their
__name__ attribute, which is causing some of the imported CPython
regression tests to fail.
parent a44cd52e
# expected: fail
import operator
for op in sorted(dir(operator)):
if op.startswith("_"):
continue
print getattr(operator, op).__name__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment