add in missing finalizer to doc example
This commit is contained in:
parent
3401049dea
commit
efce2ababa
|
@ -302,7 +302,7 @@ read an optional server URL from the test module which uses our fixture::
|
||||||
def fin():
|
def fin():
|
||||||
print ("finalizing %s (%s)" % (smtp, server))
|
print ("finalizing %s (%s)" % (smtp, server))
|
||||||
smtp.close()
|
smtp.close()
|
||||||
|
request.addfinalizer(fin)
|
||||||
return smtp
|
return smtp
|
||||||
|
|
||||||
We use the ``request.module`` attribute to optionally obtain an
|
We use the ``request.module`` attribute to optionally obtain an
|
||||||
|
|
Loading…
Reference in New Issue