summaryrefslogtreecommitdiff
path: root/markupsafe
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2010-08-11 10:16:20 +0200
committerArmin Ronacher <armin.ronacher@active-4.com>2010-08-11 10:16:20 +0200
commit4fa38b6fb0923789b2a9e6c7f980687c1725384d (patch)
tree398a3294f1e72d7589060ffca4df47fe433ecc22 /markupsafe
parent5f853161c1041ccff04987e0fa736ebe2eb62e17 (diff)
downloadmarkupsafe-4fa38b6fb0923789b2a9e6c7f980687c1725384d.tar.gz
Fixed a tiny issue with __all__0.9.3
Diffstat (limited to 'markupsafe')
-rw-r--r--markupsafe/__init__.py2
-rw-r--r--markupsafe/tests.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/markupsafe/__init__.py b/markupsafe/__init__.py
index 3e07f49..88049c1 100644
--- a/markupsafe/__init__.py
+++ b/markupsafe/__init__.py
@@ -12,7 +12,7 @@ import re
from itertools import imap
-__all__ = ['Module', 'soft_unicode', 'escape']
+__all__ = ['Markup', 'soft_unicode', 'escape']
_striptags_re = re.compile(r'(<!--.*?-->|<[^>]*>)')
diff --git a/markupsafe/tests.py b/markupsafe/tests.py
index 51b7bb4..7c81cda 100644
--- a/markupsafe/tests.py
+++ b/markupsafe/tests.py
@@ -40,6 +40,11 @@ class MarkupTestCase(unittest.TestCase):
assert Markup("<em>Foo &amp; Bar</em>").striptags() == "Foo & Bar"
assert Markup("&lt;test&gt;").unescape() == "<test>"
+ def test_all_set(self):
+ import markupsafe as markup
+ for item in markup.__all__:
+ getattr(markup, item)
+
class MarkupLeakTestCase(unittest.TestCase):