cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #01241
[Merge] ~smoser/cloud-init:bug/silence-cheetah-userwarning into cloud-init:master
Scott Moser has proposed merging ~smoser/cloud-init:bug/silence-cheetah-userwarning into cloud-init:master.
Requested reviews:
cloud init development team (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/307333
--
Your team cloud init development team is requested to review the proposed merge of ~smoser/cloud-init:bug/silence-cheetah-userwarning into cloud-init:master.
diff --git a/tests/unittests/__init__.py b/tests/unittests/__init__.py
index e69de29..1b34b5a 100644
--- a/tests/unittests/__init__.py
+++ b/tests/unittests/__init__.py
@@ -0,0 +1,9 @@
+try:
+ # For test cases, avoid the following UserWarning to stderr:
+ # You don't have the C version of NameMapper installed ...
+ from Cheetah import NameMapper as _nm
+ _nm.C_VERSION = True
+except ImportError:
+ pass
+
+# vi: ts=4 expandtab
Follow ups