tests/test_card.py | raw changeset files shortlog |
1.1 --- a/tests/test_card.py Sat Mar 14 22:13:22 2009 +0100 1.2 +++ b/tests/test_card.py Sun Mar 15 21:30:36 2009 +0100 1.3 @@ -4,6 +4,9 @@ 1.4 1.5 this_dir = os.path.split(__file__)[0] 1.6 f = codecs.open(os.path.join(this_dir, "test.vcf"), encoding="utf-8") 1.7 -doc = vContent.parse(f) 1.8 +try: 1.9 + doc = vContent.parse(f) 1.10 +finally: 1.11 + f.close() 1.12 1.13 # vim: tabstop=4 expandtab shiftwidth=4