/usr/lib/python2.3/tabnanny.py *

This commit is contained in:
S.Çağlar Onur
2005-06-21 14:29:16 +00:00
parent 83052cfb82
commit 3abf40413c
5 changed files with 84 additions and 93 deletions
-1
View File
@@ -78,5 +78,4 @@ class ArchiveFileTestCase(unittest.TestCase):
testfile = targetDir + "/sandbox/borek.cs" testfile = targetDir + "/sandbox/borek.cs"
assert pathexists(testfile) assert pathexists(testfile)
suite = unittest.makeSuite(ArchiveFileTestCase) suite = unittest.makeSuite(ArchiveFileTestCase)
-4
View File
@@ -8,7 +8,6 @@ class ContextTestCase(unittest.TestCase):
self.ctx = context.Context("samples/popt/popt.pspec") self.ctx = context.Context("samples/popt/popt.pspec")
def testConstness(self): def testConstness(self):
# test if we can get a const attribute? # test if we can get a const attribute?
try: try:
test = self.ctx.const.archives_dir_suffix test = self.ctx.const.archives_dir_suffix
@@ -38,7 +37,4 @@ class ContextTestCase(unittest.TestCase):
# we achived our goal with this error. infact, this is a # we achived our goal with this error. infact, this is a
# ConstError but we can't catch it directly here # ConstError but we can't catch it directly here
pass pass
suite = unittest.makeSuite(ContextTestCase) suite = unittest.makeSuite(ContextTestCase)
-2
View File
@@ -9,7 +9,6 @@ from pisi import context
class FetcherTestCase(unittest.TestCase): class FetcherTestCase(unittest.TestCase):
def setUp(self): def setUp(self):
self.ctx = context.Context("samples/popt/popt.pspec") self.ctx = context.Context("samples/popt/popt.pspec")
self.fetch = fetcher.Fetcher(self.ctx) self.fetch = fetcher.Fetcher(self.ctx)
def testFetch(self): def testFetch(self):
@@ -19,5 +18,4 @@ class FetcherTestCase(unittest.TestCase):
self.assertEqual(util.sha1_file(destpath), self.assertEqual(util.sha1_file(destpath),
self.ctx.spec.source.archiveSHA1) self.ctx.spec.source.archiveSHA1)
suite = unittest.makeSuite(FetcherTestCase) suite = unittest.makeSuite(FetcherTestCase)
-1
View File
@@ -36,7 +36,6 @@ if __name__ == "__main__":
module = __import__(test + 'tests') module = __import__(test + 'tests')
print "\nRunning tests in '%s'...\n" % (test) print "\nRunning tests in '%s'...\n" % (test)
runTestSuite(module.suite) runTestSuite(module.suite)
else: # run all tests else: # run all tests
print "\nRunning all tests in order...\n" print "\nRunning all tests in order...\n"
run_all() run_all()
-1
View File
@@ -27,5 +27,4 @@ class SpecReadTestCase(unittest.TestCase):
def testLenPackages(self): def testLenPackages(self):
self.assertEqual(len(self.spec.packages), 1) self.assertEqual(len(self.spec.packages), 1)
suite = unittest.makeSuite(SpecReadTestCase) suite = unittest.makeSuite(SpecReadTestCase)