Lines Matching refs:pkgdir
293 self.pkgdir = os.path.join(self.directory, 'foo')
294 os.mkdir(self.pkgdir)
295 self.pkgdir_cachedir = os.path.join(self.pkgdir, '__pycache__')
297 self.initfn = script_helper.make_script(self.pkgdir, '__init__', '')
298 self.barfn = script_helper.make_script(self.pkgdir, 'bar', '')
344 ['-m', 'compileall', '-q', self.pkgdir]))
351 self.assertFalse([fn for fn in os.listdir(self.pkgdir)
358 self.assertRunOK('-b', '-q', self.pkgdir)
363 self.assertEqual(sorted(os.listdir(self.pkgdir)), expected)
368 self.assertRunOK('-q', self.pkgdir)
374 self.assertRunOK('-q', self.pkgdir)
380 self.assertRunOK('-q', self.pkgdir)
386 self.assertRunOK('-q', self.pkgdir)
390 self.assertRunOK('-q', '-f', self.pkgdir)
395 subpackage = os.path.join(self.pkgdir, 'spam')
399 self.assertRunOK('-q', '-l', self.pkgdir)
402 self.assertRunOK('-q', self.pkgdir)
407 subpackage = os.path.join(self.pkgdir, 'spam')
418 self.assertRunOK('-q', '-r 0', self.pkgdir)
423 self.assertRunOK('-q', '-r 1', self.pkgdir)
428 self.assertRunOK('-q', '-r 2', self.pkgdir)
434 self.assertRunOK('-q', '-r 5', self.pkgdir)
441 noisy = self.assertRunOK(self.pkgdir)
442 quiet = self.assertRunOK('-q', self.pkgdir)
447 script_helper.make_script(self.pkgdir, 'crunchyfrog', 'bad(syntax')
448 _, quiet, _ = self.assertRunNotOK('-q', self.pkgdir)
449 _, silent, _ = self.assertRunNotOK('-qq', self.pkgdir)
454 self.assertRunOK('-q', '-x', r'ba[^\\/]*$', self.pkgdir)
463 self.assertRunOK('-q', self.pkgdir, pkgdir2)
470 script_helper.make_script(self.pkgdir, 'crunchyfrog', 'bad(syntax')
471 rc, out, err = self.assertRunNotOK('-q', '-d', 'dinsdale', self.pkgdir)
475 bazfn = script_helper.make_script(self.pkgdir, 'baz', 'raise Exception')
476 self.assertRunOK('-q', '-d', 'dinsdale', self.pkgdir)
477 fn = script_helper.make_script(self.pkgdir, 'bing', 'import baz')
479 os.rename(pyc, os.path.join(self.pkgdir, 'baz.pyc'))
486 '-i', os.path.join(self.directory, 'nosuchfile'), self.pkgdir)
493 f1 = script_helper.make_script(self.pkgdir, 'f1', '')
494 f2 = script_helper.make_script(self.pkgdir, 'f2', '')
495 f3 = script_helper.make_script(self.pkgdir, 'f3', '')
496 f4 = script_helper.make_script(self.pkgdir, 'f4', '')
498 l1.write(os.path.join(self.pkgdir, 'f1.py')+os.linesep)
499 l1.write(os.path.join(self.pkgdir, 'f2.py')+os.linesep)
507 f1 = script_helper.make_script(self.pkgdir, 'f1', '')
508 f2 = script_helper.make_script(self.pkgdir, 'f2', '')
509 f3 = script_helper.make_script(self.pkgdir, 'f3', '')
510 f4 = script_helper.make_script(self.pkgdir, 'f4', '')
512 l1.write(os.path.join(self.pkgdir, 'f2.py')+os.linesep)
520 f1 = script_helper.make_script(self.pkgdir, 'f1', '')
521 f2 = script_helper.make_script(self.pkgdir, 'f2', '')
522 f3 = script_helper.make_script(self.pkgdir, 'f3', '')
523 f4 = script_helper.make_script(self.pkgdir, 'f4', '')
533 bingfn = script_helper.make_script(self.pkgdir, 'bing', 'syntax(error')
546 script_helper.make_script(self.pkgdir, 'f1', '')
548 os.path.join(self.pkgdir, 'f1.py'))
549 self.assertRunOK('--invalidation-mode=checked-hash', self.pkgdir)
553 self.assertRunOK('--invalidation-mode=unchecked-hash', self.pkgdir)
563 pkgdir = os.path.join(self.directory, 'foo{}'.format(suffix))
564 os.mkdir(pkgdir)
565 fn = script_helper.make_script(pkgdir, '__init__', '')
566 files.append(script_helper.make_script(pkgdir, 'bar2', ''))