#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Unpredictable values in the expected results for a test cause failures. """ #end_pymotw_header class MyClass(object): pass def unpredictable(obj): """Returns a new list containing obj. >>> unpredictable(MyClass()) [<doctest_unpredictable.MyClass object at 0x10055a2d0>] """ return [obj]