From 9c1334ef7de0688d71e01ab2d6a6ff60bb12ae87 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 4 May 2013 17:27:59 -0400 Subject: [PATCH] #17115: Remove what appears to be a useless chunk of code which broke other tests. --- Lib/test/test_pydoc.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index 8adcdd87a48..8524e5aa61c 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -26,10 +26,6 @@ try: except ImportError: threading = None -# Just in case sys.modules["test"] has the optional attribute __loader__. -if hasattr(pydoc_mod, "__loader__"): - del pydoc_mod.__loader__ - if test.support.HAVE_DOCSTRINGS: expected_data_docstrings = ( 'dictionary for instance variables (if defined)',