diff options
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/compileall.py | 3 | ||||
| -rw-r--r-- | Lib/test/test_compileall.py | 8 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index 64c0a9a..0cc0c1d 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -238,9 +238,6 @@ def main(): args = parser.parse_args() compile_dests = args.compile_dest - if (args.ddir and (len(compile_dests) != 1 - or not os.path.isdir(compile_dests[0]))): - parser.exit('-d destdir requires exactly one directory argument') if args.rx: import re args.rx = re.compile(args.rx) diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index ef2b669..2ce8a61 100644 --- a/Lib/test/test_compileall.py +++ b/Lib/test/test_compileall.py @@ -398,14 +398,6 @@ class CommandLineTests(unittest.TestCase): self.assertCompiled(init2fn) self.assertCompiled(bar2fn) - def test_d_takes_exactly_one_dir(self): - rc, out, err = self.assertRunNotOK('-d', 'foo') - self.assertEqual(out, b'') - self.assertRegex(err, b'-d') - rc, out, err = self.assertRunNotOK('-d', 'foo', 'bar') - self.assertEqual(out, b'') - self.assertRegex(err, b'-d') - def test_d_compile_error(self): script_helper.make_script(self.pkgdir, 'crunchyfrog', 'bad(syntax') rc, out, err = self.assertRunNotOK('-q', '-d', 'dinsdale', self.pkgdir) |
