From: Simo Sorce Date: Mon, 16 Jun 2014 15:22:18 +0000 (-0400) Subject: Fix warning X-Git-Tag: v0.3.0~118 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=b2e02899bf037e26a572e6ea53dce37c9f8b0ee0 Fix warning Signed-off-by: Simo Sorce --- diff --git a/tests/helpers/http.py b/tests/helpers/http.py index 425d6b7..833637f 100755 --- a/tests/helpers/http.py +++ b/tests/helpers/http.py @@ -37,7 +37,7 @@ class PageTree(object): @property def tree(self): - if not self._tree: + if self._tree is None: self._tree = html.fromstring(self.text) return self._tree