Skip to content

Commit

Permalink
Fix zero length field name in format
Browse files Browse the repository at this point in the history
  • Loading branch information
RockBomber committed Jul 5, 2017
1 parent cac1892 commit 123c139
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def test_custom_cache_dirname(self, testdir):
def test_cache_dirname_fail_on_abs(self, testdir, custom_cache_dirname):
testdir.makeini("""
[pytest]
cache_dirname = {}
""".format(custom_cache_dirname))
cache_dirname = {custom_cache_dirname}
""".format(custom_cache_dirname=custom_cache_dirname))
pytest.raises(ValueError, "testdir.parseconfigure()",
message="cache dirname must be relative path, not absolute")

Expand Down

0 comments on commit 123c139

Please sign in to comment.