From 013bf3d4e282643ca1c424b4afc42237093ec412 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 19 Jun 2014 19:06:19 +0200 Subject: Test and docstring fixes The recent conversions to managed permissions left behind a few failing tests. Fix them. Also fix a now incorrect docstring in ipalib.config. Reviewed-By: Martin Kosek --- ipalib/config.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ipalib') diff --git a/ipalib/config.py b/ipalib/config.py index b12cfd321..e8958205d 100644 --- a/ipalib/config.py +++ b/ipalib/config.py @@ -105,15 +105,11 @@ class Env(object): u'false' If an ``str`` value looks like an integer, it's automatically converted to - the ``int`` type. Likewise, if an ``str`` value looks like a floating-point - number, it's automatically converted to the ``float`` type. For example: + the ``int`` type. >>> env.lucky = '7' >>> env.lucky 7 - >>> env.three_halves = '1.5' - >>> env.three_halves - 1.5 Leading and trailing white-space is automatically stripped from ``str`` values. For example: -- cgit