launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #31046
[Merge] ~jugmac00/launchpad:fix-testing-docs into launchpad:master
Jürgen Gmach has proposed merging ~jugmac00/launchpad:fix-testing-docs into launchpad:master.
Commit message:
Fix TempDir usage in testing docs
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~jugmac00/launchpad/+git/launchpad/+merge/464681
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~jugmac00/launchpad:fix-testing-docs into launchpad:master.
diff --git a/doc/reference/python.rst b/doc/reference/python.rst
index a616784..fafbbc9 100644
--- a/doc/reference/python.rst
+++ b/doc/reference/python.rst
@@ -338,7 +338,7 @@ itself up automatically:
class TestFoo(TestCase):
...
def test_foo(self):
- tempdir = self.useFixture(TempDir).path
+ tempdir = self.useFixture(TempDir()).path
...
do_something(os.path.join(tempdir, "test.log"))
...