diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 12:43:24 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 11:38:11 +0100 |
commit | c22fb3cb2eadaaedf8ff7d68855d340975dd4c6b (patch) | |
tree | 7919f96e2d000e9dcea768e8be8083427cd8bf08 /tests/test_Config.py | |
parent | f1f37b96426a4922b047536595c7fa30713f394a (diff) |
Ignore return types of write and shutil.copy
Python3 does not return None anymore
Diffstat (limited to 'tests/test_Config.py')
-rw-r--r-- | tests/test_Config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_Config.py b/tests/test_Config.py index 6750d84..329265b 100644 --- a/tests/test_Config.py +++ b/tests/test_Config.py @@ -68,14 +68,14 @@ def test_filter(): >>> tmpdir = str(context.new_tmpdir('bar')) >>> confname = os.path.join(tmpdir, 'gbp.conf') >>> f = open(confname, 'w') - >>> f.write('[bar]\\nfilter = asdf\\n') + >>> ret = f.write('[bar]\\nfilter = asdf\\n') >>> f.close() >>> os.environ['GBP_CONF_FILES'] = confname >>> parser = GbpOptionParser('bar') >>> parser.config['filter'] ['asdf'] >>> f = open(confname, 'w') - >>> f.write("[bar]\\nfilter = ['this', 'is', 'a', 'list']\\n") + >>> ret = f.write("[bar]\\nfilter = ['this', 'is', 'a', 'list']\\n") >>> f.close() >>> parser = GbpOptionParser('bar') >>> parser.config['filter'] |