Show More
@@ -1016,9 +1016,13 b' class TestRunner(object):' | |||||
1016 |
|
1016 | |||
1017 | def run(self, args): |
|
1017 | def run(self, args): | |
1018 | """Run the test suite.""" |
|
1018 | """Run the test suite.""" | |
1019 | self._checktools() |
|
1019 | oldmask = os.umask(022) | |
1020 | tests = self.findtests(args) |
|
1020 | try: | |
1021 | return self._run(tests) |
|
1021 | self._checktools() | |
|
1022 | tests = self.findtests(args) | |||
|
1023 | return self._run(tests) | |||
|
1024 | finally: | |||
|
1025 | os.umask(oldmask) | |||
1022 |
|
1026 | |||
1023 | def _run(self, tests): |
|
1027 | def _run(self, tests): | |
1024 | if self.options.random: |
|
1028 | if self.options.random: | |
@@ -1459,7 +1463,6 b' def main(args, runner=None, parser=None)' | |||||
1459 | parser = parser or getparser() |
|
1463 | parser = parser or getparser() | |
1460 | (options, args) = parseargs(args, parser) |
|
1464 | (options, args) = parseargs(args, parser) | |
1461 | runner.options = options |
|
1465 | runner.options = options | |
1462 | os.umask(022) |
|
|||
1463 |
|
1466 | |||
1464 | return runner.run(args) |
|
1467 | return runner.run(args) | |
1465 |
|
1468 |
General Comments 0
You need to be logged in to leave comments.
Login now