aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2020-02-12 23:24:23 +0100
committerMartin Vilcans <martin@librador.com>2020-02-12 23:24:23 +0100
commit7c786ef7d69c9b364214e10490183bc207c24e5a (patch)
tree29131ddf119dfa2a7ae96447ff2f3e27a6d94536 /test.py
parent1f2121726e709c8445ecd793eca89387d5b78145 (diff)
parenteb73207913915be7131256a1ed80d2402ecf6ad6 (diff)
downloadscreenplain-7c786ef7d69c9b364214e10490183bc207c24e5a.tar.gz
Merge branch 'remove-py2'
Diffstat (limited to 'test.py')
-rw-r--r--test.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/test.py b/test.py
deleted file mode 100644
index c4e5887..0000000
--- a/test.py
+++ /dev/null
@@ -1,24 +0,0 @@
-"""Runs nosetest after preparing the test cases.
-
-Removes the leading u from unicode literals so
-Python 3 doctests won't fail.
-
-"""
-
-from screenplain import richstring
-import re
-
-unicode_literal = re.compile(r'u([\'"])')
-
-for n in (
- 'parse_emphasis',
- '_unescape',
- '_demagic_literals',
-):
- attr = getattr(richstring, n)
- old_doc = getattr(attr, '__doc__')
- new_doc = unicode_literal.sub(r'\1', old_doc)
- setattr(attr, '__doc__', new_doc)
-
-import nose
-nose.main(argv='nosetests --nocapture --with-doctest --doctest-tests'.split())