Commit a33e201d authored by Jason R. Coombs's avatar Jason R. Coombs

Move value checking into its own block.

parent 0a30d491
......@@ -62,15 +62,16 @@ class test(Command):
def finalize_options(self):
if self.test_suite and self.test_module:
raise DistutilsOptionError(
"You may specify a module or a suite, but not both"
)
if self.test_suite is None:
if self.test_module is None:
self.test_suite = self.distribution.test_suite
else:
self.test_suite = self.test_module + ".test_suite"
elif self.test_module:
raise DistutilsOptionError(
"You may specify a module or a suite, but not both"
)
if self.test_loader is None:
self.test_loader = getattr(self.distribution, 'test_loader', None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment