Merge ~jugmac00/launchpad:fix-testing-docs into launchpad:master

Proposed by Jürgen Gmach
Status: Merged
Approved by: Jürgen Gmach
Approved revision: 00a06472dafa350d2ed5d3687675ac6033019759
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~jugmac00/launchpad:fix-testing-docs
Merge into: launchpad:master
Diff against target: 13 lines (+1/-1)
1 file modified
doc/reference/python.rst (+1/-1)
Reviewer Review Type Date Requested Status
Jürgen Gmach Approve
Simone Pelosi Approve
Review via email: mp+464681@code.launchpad.net

Commit message

Fix TempDir usage in testing docs

To post a comment you must log in.
Revision history for this message
Simone Pelosi (pelpsi) wrote :

LGTM!

review: Approve
Revision history for this message
Jürgen Gmach (jugmac00) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/doc/reference/python.rst b/doc/reference/python.rst
2index a616784..fafbbc9 100644
3--- a/doc/reference/python.rst
4+++ b/doc/reference/python.rst
5@@ -338,7 +338,7 @@ itself up automatically:
6 class TestFoo(TestCase):
7 ...
8 def test_foo(self):
9- tempdir = self.useFixture(TempDir).path
10+ tempdir = self.useFixture(TempDir()).path
11 ...
12 do_something(os.path.join(tempdir, "test.log"))
13 ...

Subscribers

People subscribed via source and target branches

to status/vote changes: