Mercurial > python-hglib
diff tests/test-import.py @ 118:e738d6fe5f3f 1.1
tests: make the tests work under Pypy (issue3965)
..which needs explicit close() due to lack of reference counting.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 23 Jun 2013 17:52:16 -0500 |
parents | 9746227239e0 |
children | 4359cabcb0cc |
line wrap: on
line diff
--- a/tests/test-import.py Fri Jun 14 18:36:56 2013 +0300 +++ b/tests/test-import.py Sun Jun 23 17:52:16 2013 -0500 @@ -22,7 +22,9 @@ self.assertEquals(self.client.cat(['a']), '1\n') def test_basic_file(self): - open('patch', 'wb').write(patch) + f = open('patch', 'wb') + f.write(patch) + f.close() # --no-commit self.client.import_(['patch'], nocommit=True)