| 13 | if not hasattr(bases, '__iter__'): |
| 14 | bases = (bases,) |
| 15 | class cls(bases[0]): |
| 16 | # We can't use the *bases form prior to Python 3. If the later bases do anything clever in |
| 17 | # thier metaclasses, we won't recieve their effects. :-( |
| 18 | locals().update(suite) |
| 19 | # This seems to work reliably in CPython, it's not clear if that's standard |
| 20 | cls.__name__ = name |
| 21 | cls.__bases__ = bases |
| 22 | # Stolen from the NamedTuple implementation |
no test coverage detected