← Back to team overview

cloud-init-dev team mailing list archive

[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:
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 @@
+    # 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