Skip to content

Commit

Permalink
Fix unittests for python 3
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Oct 31, 2016
1 parent bae4f72 commit 7fda9cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,6 +11,6 @@ install:
- pip install .
- pip install coveralls
script:
- coverage run --source=config-finder setup.py test
- coverage run --source=config_finder setup.py test
after_success: coveralls
sudo: false
4 changes: 2 additions & 2 deletions config_finder/__init__.py
Expand Up @@ -183,7 +183,7 @@ def test_ini(self):
for section, content in dict1.items():
cfg.add_section(section)
for key, val in content.items():
cfg.set(section, key, val)
cfg.set(section, key, str(val))
with open('/tmp/conf.ini', 'w') as fd_:
cfg.write(fd_)

Expand All @@ -192,7 +192,7 @@ def test_ini(self):
for section, content in dict2.items():
cfg.add_section(section)
for key, val in content.items():
cfg.set(section, key, val)
cfg.set(section, key, str(val))
with open('./conf.ini', 'w') as fd_:
cfg.write(fd_)

Expand Down

0 comments on commit 7fda9cd

Please sign in to comment.