diff -r df50f73f03ca Lib/test/support/__init__.py --- a/Lib/test/support/__init__.py Thu Nov 14 10:06:18 2013 -0800 +++ b/Lib/test/support/__init__.py Thu Nov 14 15:28:06 2013 -0600 @@ -85,7 +85,7 @@ "skip_unless_symlink", "requires_gzip", "requires_bz2", "requires_lzma", "bigmemtest", "bigaddrspacetest", "cpython_only", "get_attribute", "requires_IEEE_754", "skip_unless_xattr", "requires_zlib", - "anticipate_failure", + "anticipate_failure", "not_implemented", # sys "is_jython", "check_impl_detail", # network @@ -2134,3 +2134,18 @@ # actually override the attribute setattr(object_to_patch, attr_name, new_value) + +def not_implemented(func): + """Decorator for use on tests which are not yet implemented. + + When run in verbose mode, tests with this decorator will stand out a bit + in the test listing due to the docstring and the expected failure. + """ + + @unittest.expectedFailure + @functools.wraps(func) + def test(self): + raise NotImplementedError + + test.__doc__ = "Not implemented: {}".format(test.__qualname__) + return test diff -r df50f73f03ca Lib/test/test_minidom.py --- a/Lib/test/test_minidom.py Thu Nov 14 10:06:18 2013 -0800 +++ b/Lib/test/test_minidom.py Thu Nov 14 15:28:06 2013 -0600 @@ -1,7 +1,7 @@ # test for xml.dom.minidom import pickle -from test.support import run_unittest, findfile +from test.support import run_unittest, findfile, not_implemented import unittest import xml.dom.minidom @@ -360,12 +360,15 @@ and el.getAttribute("spam2") == "bam2") dom.unlink() + @not_implemented def testGetAttrList(self): pass + @not_implemented def testGetAttrValues(self): pass + @not_implemented def testGetAttrLength(self): pass