diff options
| author | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:44:50 +0000 |
|---|---|---|
| committer | strank <strank@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-23 19:44:50 +0000 |
| commit | 3168fad0b4804bc402a933d98e84a67dd4c88097 (patch) | |
| tree | 8b1cb8accd2b1843d83838796a738e1b4a93faa3 /test/test_functional.py | |
| parent | e2cb81123828938ca76cdff8db59289f5e71b348 (diff) | |
| download | docutils-3168fad0b4804bc402a933d98e84a67dd4c88097.tar.gz | |
undo accidental commit to trunk
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@5608 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_functional.py')
| -rwxr-xr-x | test/test_functional.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_functional.py b/test/test_functional.py index 9d129f412..26f4533c6 100755 --- a/test/test_functional.py +++ b/test/test_functional.py @@ -95,9 +95,9 @@ class FunctionalTestCase(DocutilsTestSupport.CustomTestCase): execfile(join_path(datadir, 'tests', '_default.py'), namespace) execfile(self.configfile, namespace) # Check for required settings: - assert 'test_source' in namespace,\ + assert namespace.has_key('test_source'),\ "No 'test_source' supplied in " + self.configfile - assert 'test_destination' in namespace,\ + assert namespace.has_key('test_destination'),\ "No 'test_destination' supplied in " + self.configfile # Set source_path and destination_path if not given: namespace.setdefault('source_path', @@ -151,7 +151,7 @@ class FunctionalTestCase(DocutilsTestSupport.CustomTestCase): print >>sys.stderr, diff raise # Execute optional function containing extra tests: - if '_test_more' in namespace: + if namespace.has_key('_test_more'): namespace['_test_more'](join_path(datadir, 'expected'), join_path(datadir, 'output'), self, namespace) |
