[Python-checkins] cbd0ab901245 in distutils2: this test is not necessary anymore

tarek.ziade hg at python.org
Fri Mar 5 00:31:24 CET 2010


tarek.ziade pushed cbd0ab901245 to distutils2:
http://hg.python.org/distutils2/rev/cbd0ab901245
changeset: 70:cbd0ab901245
user: Tarek Ziade <tarek at ziade.org>
date: Thu Mar 04 20:41:35 2010 +0100
summary: this test is not necessary anymore
diff --git a/src/distutils2/tests/test_check.py b/src/distutils2/tests/test_check.py
--- a/src/distutils2/tests/test_check.py
+++ b/src/distutils2/tests/test_check.py
@@ -47,22 +47,6 @@
 cmd = self._run(metadata, strict=1)
 self.assertEquals(cmd._warnings, 0)
 
- def test_check_document(self):
- if not _HAS_DOCUTILS: # won't test without docutils
- return
- pkg_info, dist = self.create_dist()
- cmd = check(dist)
-
- # let's see if it detects broken rest
- broken_rest = 'title\n===\n\ntest'
- msgs = cmd._check_rst_data(broken_rest)
- self.assertEquals(len(msgs), 1)
-
- # and non-broken rest
- rest = 'title\n=====\n\ntest'
- msgs = cmd._check_rst_data(rest)
- self.assertEquals(len(msgs), 0)
-
 def test_check_restructuredtext(self):
 if not _HAS_DOCUTILS: # won't test without docutils
 return
--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /