Database improperly closed in example code
Database improperly closed in example code

os.unlink(flaskr.DATABASE) causes the actual application database to be
purged; whereas, I reckon, one wants the _test_ database to be removed.
So every time I ran it, the test passed, but ended up crashing the live
app for want of a valid database.

I avoided using the sample code in examples/flaskr thus far, as I chose
to type out code from the turorial docs. The actual example code looks
good - at least to my beginner's eye.

MjAbuz/flask,zoyanhui/flask,lord63-forks/flask,mitchfriedman/flask,lyn233/flask,ffsdmad/flask,XGiton/flask,VShangxiao/flask,artleaf/flask,tangfeng1/flask,jonatanblue/flask,wldtyp/flask,hyunchel/flask,beni55/flask,wilbert-abreu/flask,drewja/flask,rollingstone/flask,tjxiter/flask,horica-ionescu/flask,dawran6/flask,chuijiaolianying/flask,pxzhenren/flask,ankurpandey/flask,postelin/flask,artleaf/flask,onetinyr/flask,liaoqingwei/flask,rollingstone/flask,zailushangde/flask,Ricardo666666/flask,ghhong1986/flask,Papa2k15/flask,fengsp/flask,wudafucode/flask,drewja/flask,AndreaEdwards/flask,gilesburnfield/flask,happyspace/flask,erishforG/flask,nwags/flask,wklken/flask,justanr/flask,GavinCruise/flask,Endika/flask,raven47git/flask,q1ang/flask,mysweet/flask,jorpramo/flask,wudafucode/flask,LonglyCode/flask,ryandvill/flask,Ricardo666666/flask,anujk3/flask,mAzurkovic/flask,mitsuhiko/flask,dhruvsrivastava/flask,kuhli/flask,elelianghh/flask,jstacoder/flask,jorpramo/flask,chenrenyi/flask,fanshaohua-fan/flask,szymonm/flask,artleaf/flask,Eagles2F/flask,jonieli/flask,wangjun/flask,alexwidener/flask,wangjun/flask,q1ang/flask,lalinsky/flask,algoStruct/flask,bluedazzle/flask,JingZhou0404/flask,AndreaEdwards/flask,kuhli/flask,anujk3/flask,onetinyr/flask,sixpi/flask,pinkpet/flask,VShangxiao/flask,nZac/flask,SsangYoon/Flask,antsar/flask,oculardexterity/flask,gangeshwark/flask,JamesTFarrington/flask,hoatle/flask,fkazimierczak/flask,justanr/flask,wtorcasoGB/flask,kyle-sorensen/flask,gaomingnudt/gm-flask2.0,arvinls/flask,pledo/flask,xujianhai/flask,ABaldwinHunter/flask-clone-classic,fkazimierczak/flask,EasonYi/flask,visaxin/flask,moluzhang/flask,ZacariasBendeck/flask,ankravch/flask,Freebird2014/flask,qinfengsuiyu/flask,postelin/flask,elelianghh/flask,LonglyCode/flask,iamantee/flask,sage417/flask,bluedazzle/flask,moluzhang/flask,warm200/flask,tony/flask,ryandvill/flask,WSDC-NITWarangal/flask,nju520/flask,vishnugonela/flask,oculardexterity/flask,suppandi/flask,fevxie/flask,grayswand1r/flask,ezequielo/flask,gangeshwark/flask,EasonYi/flask,Parkayun/flask,sage417/flask,mujiatong/flask,adrianmoisey/cptdevops,godfreyy/flask,pallets/flask,edcomstock/flask,garaden/flask,skmezanul/flask,XGiton/flask,mrdon/flask,jonieli/flask,postelin/flask,ABaldwinHunter/flask-clone-classic,ankurpandey/flask,alanhamlett/flask,Faiz7412/flask,vivekanand1101/flask,jeezybrick/flask,gbolahanalade/flask,liaoqingwei/flask,sgrepo/flask,MjAbuz/flask,mrdon/flask,horica-ionescu/flask,luzzyzhang/flask,jenalgit/flask,stephaniemertz/flask,cheesecake4392/flask,JamesTFarrington/flask,jawed123/flask,HeyItsAlan/flask,bodefuwa/flask,sonnyhu/flask,aniketshukla/flask,edcomstock/flask,liuyi1112/flask,abdulbaqi/flask,TylerB24890/flask,ffsdmad/flask,godfreyy/flask,vivekanand1101/flask,treedledee/flask,qinfengsuiyu/flask,algoStruct/flask,liukaijv/flask,jonatanblue/flask,lyn233/flask,tangfeng1/flask,anujk3/flask,alexwidener/flask,cheesecake4392/flask,ankravch/flask,cgvarela/flask,nju520/flask,auready/flask,luvten/flask,skmezanul/flask,tristanfisher/flask,Papa2k15/flask,luzzyzhang/flask,kuku940/flask,ezequielo/flask,xujianhai/flask,jenalgit/flask,dawran6/flask,dominjune/flask,chenke91/flask,flamelizard/flask,VictorChaun/flask,flabe81/flask,flamelizard/flask,jorpramo/flask,RohithKP/flask,raven47git/flask,Faiz7412/flask,niima/flask,gangeshwark/flask,chenke91/flask,mujiatong/flask,blankme/flask,auready/flask,tony/flask,pallets/flask,AvivC/flask,grayswand1r/flask,raven47git/flask,JingZhou0404/flask,margguo/flask,sam-tsai/flask,cliu-aa/flask,liuyi1112/flask,fanshaohua-fan/flask,ghhong1986/flask,nju520/flask,nZac/flask,beni55/flask,SsangYoon/Flask,HeyItsAlan/flask,fengsp/flask,hoatle/flask,TylerB24890/flask,blankme/flask,fkazimierczak/flask,visaxin/flask,tripathi62674/flask,treedledee/flask,pallets/flask,suppandi/flask,DesQi/flask,TylerB24890/flask,lord63-forks/flask,s7v7nislands/flask,wtl-zju/flask,rawrgulmuffins/flask,felipefuka/flask,jiimaho/flask,huwenhui/flask,Ricardo666666/flask,GavinCruise/flask,VictorChaun/flask,dominjune/flask,drewja/flask,RohithKP/flask,happyspace/flask,Parkayun/flask,rawrgulmuffins/flask,karlw00t/flask,wtl-zju/flask,oculardexterity/flask,lynget/flask,GavinCruise/flask,pledo/flask,ankurpandey/flask,sonnyhu/flask,theo-l/flask,jiimaho/flask,tjxiter/flask,iamantee/flask,VictorChaun/flask,lalinsky/flask,tcnoviembre2013/flask,cliu-aa/flask,adrianmoisey/cptdevops,dhruvsrivastava/flask,mAzurkovic/flask,tcnoviembre2013/flask,homeworkprod/flask,algoStruct/flask,garaden/flask,jeezybrick/flask,onetinyr/flask,brianbeale/flask,pxzhenren/flask,fevxie/flask,kyle-sorensen/flask,zoyanhui/flask,gaomingnudt/gm-flask2.0,Eagles2F/flask,tripathi62674/flask,theo-l/flask,EasonYi/flask,Endika/flask,xiaoshaozi52/flask,alanhamlett/flask,hyunchel/flask,happyspace/flask,mitchfriedman/flask,luvten/flask,karen-wang/flask,chuijiaolianying/flask,ryandvill/flask,mysweet/flask,sixpi/flask,arvinls/flask,chenke91/flask,tangfeng1/flask,sam-tsai/flask,liaoqingwei/flask,wilbert-abreu/flask,s7v7nislands/flask,kyle-sorensen/flask,suppandi/flask,pinkpet/flask,chuijiaolianying/flask,karen-wang/flask,lynget/flask,jonieli/flask,aniketshukla/flask,godfreyy/flask,VShangxiao/flask,gbolahanalade/flask,tristanfisher/flask,alanhamlett/flask,wtorcasoGB/flask,wldtyp/flask,mitsuhiko/flask,xiaoshaozi52/flask,niima/flask,liuyi1112/flask,warm200/flask,flabe81/flask,felipefuka/flask,DesQi/flask,abdulbaqi/flask,justanr/flask,Faiz7412/flask,vishnugonela/flask,karen-wang/flask,sgrepo/flask,nwags/flask,bodefuwa/flask,jstacoder/flask,chenrenyi/flask,brianbeale/flask,szymonm/flask,robertglen/flask,Freebird2014/flask,gilesburnfield/flask,huwenhui/flask,SsangYoon/Flask,mrdon/flask,cgvarela/flask,kuku940/flask,antsar/flask,zailushangde/flask,liukaijv/flask,karlw00t/flask,homeworkprod/flask,margguo/flask,wklken/flask,robertglen/flask,warm200/flask,stephaniemertz/flask,AvivC/flask,ZacariasBendeck/flask,AndreaEdwards/flask,jenalgit/flask,wklken/flask,ezequielo/flask,vishnugonela/flask,erishforG/flask,visaxin/flask,szymonm/flask,mrdon/flask,s7v7nislands/flask,jstacoder/flask,WSDC-NITWarangal/flask,jawed123/flask