python 2.4 support regression in clone_test_with_new_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Critical
|
Robert Collins |
Bug Description
Traceback (most recent call last):
File "C:\Python24\
return fn(*args)
File "C:\Python24\
testMethod()
File "C:\Python24\
newTest = clone_test_
File "C:\Python24\
newTest = copy.deepcopy(test)
File "C:\Python24\
y = _reconstruct(x, rv, 1, memo)
File "C:\Python24\
state = deepcopy(state, memo)
File "C:\Python24\
y = copier(x, memo)
File "C:\Python24\
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "C:\Python24\
y = copier(x, memo)
File "C:\Python24\
y.append(
File "C:\Python24\
y = copier(x, memo)
File "C:\Python24\
y.append(
File "C:\Python24\
y = _reconstruct(x, rv, 1, memo)
File "C:\Python24\
y = callable(*args)
File "C:\Python24\
return cls.__new__(cls, *args)
TypeError: function() takes at least 2 arguments (0 given)
------------
Changed in testtools: | |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Robert Collins (lifeless) |
Changed in testtools: | |
milestone: | none → next |
status: | Triaged → Fix Released |
The problem is that we now use function objects, and until
committer: guido.van.rossum
timestamp: Sat 2006-02-25 21:38:04 +0000
message:
- Patch 1433928:
- The copy module now "copies" function objects (as atomic objects).
- dict.__getitem__ now looks for a __missing__ hook before raising
KeyError.
- Added a new type, defaultdict, to the collections module.
This uses the new __missing__ hook behavior added to dict (see above).
they were not copyable.
I'm going to try monkey patching such support it.