summaryrefslogtreecommitdiff
path: root/test/DocutilsTestSupport.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/DocutilsTestSupport.py')
-rw-r--r--test/DocutilsTestSupport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/DocutilsTestSupport.py b/test/DocutilsTestSupport.py
index 24858c624..ce67ab262 100644
--- a/test/DocutilsTestSupport.py
+++ b/test/DocutilsTestSupport.py
@@ -668,7 +668,7 @@ class WriterPublishTestCase(CustomTestCase, docutils.SettingsSpec):
writer_name = '' # set in subclasses or constructor
def __init__(self, *args, **kwargs):
- if kwargs.has_key('writer_name'):
+ if 'writer_name' in kwargs:
self.writer_name = kwargs['writer_name']
del kwargs['writer_name']
CustomTestCase.__init__(self, *args, **kwargs)