Fix Stylo tests to pass on both Stable and Nightly Rust.

This is on top of https://github.com/servo/servo/pull/19285.

Rust Nightly has new enum memory layout optimizations:
https://github.com/rust-lang/rust/pull/45225
This commit is contained in:
Simon Sapin 2017-11-21 12:15:06 +01:00
parent 6031de9a39
commit aaba33e56b
7 changed files with 25 additions and 4 deletions

View file

@ -140,7 +140,7 @@ class Keyword(object):
def arg_to_bool(arg):
if isinstance(arg, bool):
return arg
assert arg in ["True", "False"]
assert arg in ["True", "False"], "Unexpected value for boolean arguement: " + repr(arg)
return arg == "True"