Merge lp:~jml/testtools/tsfr-fixup into lp:~testtools-committers/testtools/trunk
| Status: | Merged |
|---|---|
| Merged at revision: | 252 |
| Proposed branch: | lp:~jml/testtools/tsfr-fixup |
| Merge into: | lp:~testtools-committers/testtools/trunk |
| Diff against target: |
465 lines (+271/-115) 2 files modified
testtools/testresult/real.py (+38/-33) testtools/tests/test_testresult.py (+233/-82) |
| To merge this branch: | bzr merge lp:~jml/testtools/tsfr-fixup |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| testtools committers | 2012-04-13 | Pending | |
|
Review via email:
|
|||
Description of the Change
After sitting staring confused at ThreadsafeForwa
Most of the changes are in the tests. I hope they make sense and more clearly show what TSFR actually does.
Implementation-
There are two main things that I am unsure of in TSFR as is:
1. Why not forward on stopTest(), rather than on addFoo()?
2. Why are global tags specifically forwarded as global tags? Why not instead send them within the test context?
Correct me if I'm wrong, but...
tags(A, B)
startTest(t)
tags(C, D)
addSuccess(t)
stopTest(t)
tags(B, A)
Is equivalent to:
startTest(t)
tags(A, B)
tags(C, D)
addSuccess(t)
stopTest(t)
And also to:
startTest(t)
tags(
addSuccess(t)
stopTest(t)
So why have the extra complexity of maintaining global & local state for tags?
- 263. By Jonathan Lange on 2012-04-13
-
Documentation tweaks.
