test: Fix test_blueprint_sanity

The new toml library, introduced with abe7df34f, outputs different
whitespace from the old one. Fix the test expectation and strip()
results from toml.dumps(), because it contains superfluous newlines at
the end.
This commit is contained in:
Lars Karlitski 2019-06-24 19:04:16 +02:00
parent 682f8a9295
commit 61fc4d2b4e
2 changed files with 2 additions and 2 deletions

View File

@ -29,4 +29,5 @@ def loads(s):
raise TomlError(e.msg, e.doc, e.pos)
def dumps(o):
return toml.dumps(o, encoder=toml.TomlEncoder(dict))
# strip the result, because `toml.dumps` adds a lot of newlines
return toml.dumps(o, encoder=toml.TomlEncoder(dict)).strip()

View File

@ -36,7 +36,6 @@ description = "Start building tests with beakerlib."
version = "0.0.1"
modules = []
groups = []
[[packages]]
name = "beakerlib"
version = "*"