From: Dmitry Selyutin Date: Tue, 26 Sep 2017 07:13:38 +0000 (+0300) Subject: module: relax type check after the last commit X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c19b1ab835b1f4fe2f24085cc448e8867aa8ac7b;p=gnulib.git module: relax type check after the last commit --- diff --git a/pygnulib/module.py b/pygnulib/module.py index 8256d9ce80..780ba58d3b 100644 --- a/pygnulib/module.py +++ b/pygnulib/module.py @@ -457,7 +457,9 @@ class Table: """ if not callable(lookup): raise TypeError("lookup must be a callable") - _type_assert_("options", options, _ConfigOption_) + _type_assert_("options", options, int) + if options & ~_ConfigOption_.All: + raise ValueError("unknown configuration options") obsolete = bool(options & _ConfigOption_.Obsolete) tests = bool(options & _ConfigOption_.Tests)