I figured out what the difference was between the class that works and the one that doesn't: nothing! The only difference is that for the class that works I had a leftover "from ... import WorkingFactory" statement at the beginning of my doctest (leftover in that I had put it there before including the factory in the system by which sage loads a bunch of things into the global namespace). So, I just added the command "from ... import MFactory" to the beginning of the doctests that weren't working and all the doctests are now happy. This seems like a bug in the doctesting, no? The doctesting is creating its own separate instance of the factory.
Rob -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.