add in missing finalizer to doc example

This commit is contained in:
Darren Yin 2015-05-21 19:15:52 -07:00
parent 3401049dea
commit efce2ababa
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ read an optional server URL from the test module which uses our fixture::
def fin():
print ("finalizing %s (%s)" % (smtp, server))
smtp.close()
request.addfinalizer(fin)
return smtp
We use the ``request.module`` attribute to optionally obtain an