Rev 2566: Remove unneeded inner function in adapt_test_to_scenario. in http://people.ubuntu.com/~robertc/baz2.0/integration
Robert Collins
robertc at robertcollins.net
Mon Jul 2 06:54:01 BST 2007
At http://people.ubuntu.com/~robertc/baz2.0/integration
------------------------------------------------------------
revno: 2566
revision-id: robertc at robertcollins.net-20070702055355-82gailz4yex9gpw4
parent: robertc at robertcollins.net-20070702052625-motr7ljwhmqvw9rg
parent: robertc at robertcollins.net-20070702055259-eoyl4u4nfml4kdez
committer: Robert Collins <robertc at robertcollins.net>
branch nick: integration
timestamp: Mon 2007-07-02 15:53:55 +1000
message:
Remove unneeded inner function in adapt_test_to_scenario.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
------------------------------------------------------------
revno: 2564.1.1
revision-id: robertc at robertcollins.net-20070702055259-eoyl4u4nfml4kdez
parent: robertc at robertcollins.net-20070702052425-0msyx0beap6klkf9
committer: Robert Collins <robertc at robertcollins.net>
branch nick: adapter-cleanup
timestamp: Mon 2007-07-02 15:52:59 +1000
message:
Remove unneeded inner function in adapt_test_to_scenario.
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2007-07-02 05:26:25 +0000
+++ b/bzrlib/tests/__init__.py 2007-07-02 05:53:55 +0000
@@ -2515,8 +2515,6 @@
new_test = deepcopy(test)
for name, value in scenario[1].items():
setattr(new_test, name, value)
- def make_new_test_id():
- new_id = "%s(%s)" % (new_test.id(), scenario[0])
- return lambda: new_id
- new_test.id = make_new_test_id()
+ new_id = "%s(%s)" % (new_test.id(), scenario[0])
+ new_test.id = lambda: new_id
return new_test
More information about the bazaar-commits
mailing list