Changes between Initial Version and Version 6 of Ticket #27390


Ignore:
Timestamp:
03/01/19 14:54:38 (10 months ago)
Author:
jdemeyer
Comment:

I don't understand why adding the class alpha would fix anything.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27390

    • Property Status changed from new to needs_review
    • Property Commit changed from to 82f97c33db686d77a2dc0c8878151cafca380ce5
    • Property Branch changed from to u/vklein/27390
  • Ticket #27390 – Description

    initial v6  
    11Fix the
    22{{{
    3 TypeError: Cannot create a consistent method resolution
    4 order (MRO) for bases object, bar
    5 }}}
     3sage -t --long src/sage/misc/test_class_pickling.py
     4**********************************************************************
     5File "src/sage/misc/test_class_pickling.py", line 20, in sage.misc.test_class_pickling.metaclass
     6Failed example:
     7    c = metaclass("foo2", (object, bar,))
     8Exception raised:
     9    Traceback (most recent call last):
     10      File "/home/vklein/odk/sage/local/lib/python3.6/site-packages/sage/doctest/forker.py", line 671, in _run
     11        self.compile_and_execute(example, compiler, test.globs)
     12      File "/home/vklein/odk/sage/local/lib/python3.6/site-packages/sage/doctest/forker.py", line 1095, in compile_and_execute
     13        exec(compiled, globs)
     14      File "<doctest sage.misc.test_class_pickling.metaclass[1]>", line 1, in <module>
     15        c = metaclass("foo2", (object, bar,))
     16      File "/home/vklein/odk/sage/local/lib/python3.6/site-packages/sage/misc/test_class_pickling.py", line 31, in metaclass
     17        result = Metaclass(name, bases, dict())
     18    TypeError: Cannot create a consistent method resolution
     19    order (MRO) for bases object, bar
     20**********************************************************************
     21}}}
    622errors in python3.
    723