File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,7 +115,9 @@ pointing to an allocated resource, which is the result of calling
115115``resource_manager.getResource() ``. ``finishedWith `` will be called on each
116116resource during tearDown().
117117
118- For example::
118+ For example:
119+
120+ .. code-block :: python
119121
120122 class TestLog (testresources .ResourcedTestCase ):
121123
@@ -161,7 +163,9 @@ overriding these methods:
161163 whether ``TestResourceManager.dirtied `` has been called or any of the
162164 dependency resources are dirty.
163165
164- For instance::
166+ For instance:
167+
168+ .. code-block :: python
165169
166170 class TemporaryDirectoryResource (TestResourceManager ):
167171
@@ -179,7 +183,9 @@ For instance::
179183
180184 The ``resources `` list on the TestResourceManager object is used to declare
181185dependencies. For instance, a DataBaseResource that needs a TemporaryDirectory
182- might be declared with a resources list::
186+ might be declared with a resources list:
187+
188+ .. code-block :: python
183189
184190 class DataBaseResource (TestResourceManager ):
185191
You can’t perform that action at this time.
0 commit comments