| Manera, Villiam 
    vmanera at manord.com Mon Aug 2 16:37:24 EDT 2004 
 at line 278 of servlet.py:
		assert (isinstance(default, (list, dict, str)),
					('Argument default value must be a
string, '
					'list or dict (or subclass
thereof)'))
but:
	def testAssert(default):
		assert (isinstance(default, (list, dict, str)),
					('Argument default value must be a
string, '
					'list or dict (or subclass
thereof)'))
		print 'ok assert'
	testAssert('ciao')
	testAssert(1)
	>ok assert
	>ok assert
	def testAssert1(default):
		assert isinstance(default, (list, dict, str)),\
					('Argument default value must be a
string, '
					'list or dict (or subclass
thereof)')
		print 'ok assert'
	
	testAssert1('ciao')
	testAssert1(1)
	>ok assert
	>Traceback (most recent call last):
  File "C:\Sviluppo\python\test_prove\driver data base\stm.py", line 74, in
?
    testAssert1(1)
  File "C:\Sviluppo\python\test_prove\driver data base\stm.py", line 67, in
testAssert1
    assert isinstance(default, (list, dict, str)),\
AssertionError: Argument default value must be a string, list or dict (or
subclass thereof)
Process completed with exit code 1
Villiam
 |