From 57e5a8eb6d6ff0a393116d5471f720cc1af33f88 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 2 Nov 2017 09:41:36 +0100 Subject: Always save user values if they're valid Can just skip the invalidation for promptless symbols. Makes things less magic and more intuitive while still being fast. Means no docs need to be rewritten too. Now the warning gets printed for unset_value() as well. --- testsuite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite.py') diff --git a/testsuite.py b/testsuite.py index 4cfc245..586899a 100644 --- a/testsuite.py +++ b/testsuite.py @@ -1933,11 +1933,11 @@ def test_sanity(conf, arch): conf.disable_warnings() sym.set_value(2) sym.set_value("foo") + sym.unset_value() conf.enable_warnings() sym.str_value sym.tri_value sym.type - sym.unset_value() sym.user_value sym.visibility @@ -1971,11 +1971,11 @@ def test_sanity(conf, arch): conf.disable_warnings() sym.set_value(2) sym.set_value("foo") + sym.unset_value() conf.enable_warnings() sym.str_value sym.tri_value sym.type - sym.unset_value() sym.visibility # Cheat with internals -- cgit v1.2.3