[New-bugs-announce] [issue14664] Skipping a test mixin gives metaclass error

Antoine Pitrou report at bugs.python.org
Tue Apr 24 23:34:34 CEST 2012

New submission from Antoine Pitrou <pitrou at free.fr>:

Seen on a buildbot:

test test_multiprocessing crashed -- Traceback (most recent call last):
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/regrtest.py", line 1229, in runtest_inner
    the_package = __import__(abstest, globals(), locals(), [])
  File "<frozen importlib._bootstrap>", line 1030, in _find_and_load
  File "<frozen importlib._bootstrap>", line 611, in load_module
  File "<frozen importlib._bootstrap>", line 271, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 499, in _load_module
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_multiprocessing.py", line 2430, in <module>
    testcases_processes = create_test_cases(ProcessesMixin, type='processes')
  File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_multiprocessing.py", line 2409, in create_test_cases
    class Temp(base, unittest.TestCase, Mixin):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

Here is a patch.

components: Library (Lib)
files: skip_mixin.patch
keywords: patch
messages: 159213
nosy: benjamin.peterson, michael.foord, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Skipping a test mixin gives metaclass error
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file25353/skip_mixin.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list