import test print test # TODO this should work even if we don't keep a reference to l; # it doesn't currently always work, but it sometimes works, so it's hard # to mark this case as "expected: fail". # Instead just weaken the test, and add this TODO to add the harder test back # later. l = [] test.store(l) print test.load() class C(object): def __init__(self): self.x = self.y = self.z = self.w = self.k = self.a = self.b = self.c = 1 for i in xrange(100000): C() print "This will break" print test.load()
import test print test test.store([]) print test.load() class C(object): def __init__(self): self.x = self.y = self.z = self.w = self.k = self.a = self.b = self.c = 1 for i in xrange(100000): C() print "This will break" print test.load()
import test print test test.store([]) print test.load() class C(object): def __init__(self): self.x = self.y = self.z = self.w = self.k = self.a = self.b = self.c = 1 for i in xrange(1000000): C() print "This will break" print test.load()
import test import tag import plan import options if __name__ == '__main__': args = options.arguments() if args.test and args.plan: plan.attach(args.test, args.plan) elif args.test and args.tag: tag.attach(args.test, args.tag) elif args.test: test.store(args.test) elif args.plan: test.store(args.plan) elif args.tag: test.store(args.tag) else: print("error: no valid options given")