Add doctest to with_metaclass()
Merge pull request #2391 from asmeurer/with_metaclass_doc

Add doctest to with_metaclass()