aboutsummaryrefslogtreecommitdiffstats
path: root/test-markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-03-03 02:29:33 +0000
committerWaylan Limberg <waylan@gmail.com>2008-03-03 02:29:33 +0000
commitc411dd7ee643ae2953997018358e319d16dcef6a (patch)
tree0e9d37c7a5b3df89af1a46d20eea6c520644f8dd /test-markdown.py
parent7e0b40c87dd4d8faf4be4b8ba13aa79959f4a547 (diff)
downloadmarkdown-c411dd7ee643ae2953997018358e319d16dcef6a.tar.gz
markdown-c411dd7ee643ae2953997018358e319d16dcef6a.tar.bz2
markdown-c411dd7ee643ae2953997018358e319d16dcef6a.zip
fixed testing framework to actually use the extensions passed in and a few other minor cleanup things.
Diffstat (limited to 'test-markdown.py')
-rw-r--r--test-markdown.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test-markdown.py b/test-markdown.py
index 94fdda4..48dd40b 100644
--- a/test-markdown.py
+++ b/test-markdown.py
@@ -197,7 +197,7 @@ def testDirectory(dir, measure_time = False) :
mem = memory()
t = time.clock()
- md = markdown.Markdown()
+ md = markdown.Markdown(extensions=extensions)
construction_time = time.clock() - t
construction_mem = memory(mem)
@@ -232,7 +232,7 @@ def testDirectory(dir, measure_time = False) :
actual_output = ""
actual_lines = []
- #md.source = ""
+ md.source = ""
gc.collect()
mem = memory()
t = time.clock()
@@ -351,5 +351,6 @@ markdown = __import__(MARKDOWN_FILE)
testDirectory("tests/markdown-test", measure_time=True)
testDirectory("tests/misc", measure_time=True)
-#testDirectory("tests/extensions-x-footnotes-toc")
+#testDirectory("tests/extensions-x-footnotes")
+# testDirectory("tests/extensions-x-ext1-ext2")