comparison tests/test-config.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 ffef7df076e8
children 9ecb271600fc
comparison
equal deleted inserted replaced
117:59cb26bf866e 118:e738d6fe5f3f
1 import os, common, hglib 1 import os, common, hglib
2 2
3 class test_config(common.basetest): 3 class test_config(common.basetest):
4 def setUp(self): 4 def setUp(self):
5 common.basetest.setUp(self) 5 common.basetest.setUp(self)
6 open('.hg/hgrc', 'a').write('[section]\nkey=value\n') 6 f = open('.hg/hgrc', 'a')
7 f.write('[section]\nkey=value\n')
8 f.close()
7 self.client = hglib.open() 9 self.client = hglib.open()
8 10
9 def test_basic(self): 11 def test_basic(self):
10 config = self.client.config() 12 config = self.client.config()
11 13