summaryrefslogtreecommitdiff
path: root/scss/tests/test_expression.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-27 15:22:32 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-27 15:22:32 -0700
commit0773b2c16c9d15f2dc76f7a4d49e98c1e5f59ea2 (patch)
tree12b43ed0b0607b178bec2862a7584e5d37a580fa /scss/tests/test_expression.py
parent2b61376baf191a82f9774dcb9f51abd03edb1eba (diff)
downloadpyscss-0773b2c16c9d15f2dc76f7a4d49e98c1e5f59ea2.tar.gz
At long last, kill ParserValue and most of the Color constructor.
Diffstat (limited to 'scss/tests/test_expression.py')
-rw-r--r--scss/tests/test_expression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/tests/test_expression.py b/scss/tests/test_expression.py
index a16950e..4798006 100644
--- a/scss/tests/test_expression.py
+++ b/scss/tests/test_expression.py
@@ -80,7 +80,7 @@ def test_functions(calc):
ns = Namespace(functions=CORE_LIBRARY)
calc = Calculator(ns).calculate
- assert calc('grayscale(red)') == Color((127.5, 127.5, 127.5, 1))
+ assert calc('grayscale(red)') == Color.from_rgb(0.5, 0.5, 0.5)
assert calc('grayscale(1)') == String('grayscale(1)', quotes=None) # Misusing css built-in functions (with scss counterpart)
assert calc('skew(1)') == String('skew(1)', quotes=None) # Missing css-only built-in functions
with pytest.raises(TypeError):