Update of /cvsroot/jython/bugtests
In directory usw-pr-cvs1:/tmp/cvs-serv6637
Modified Files:
test309.py test310c.py
Log Message:
Turn warnings into hard failures now that the bug is fixed.
Index: test309.py
===================================================================
RCS file: /cvsroot/jython/bugtests/test309.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test309.py 2001/07/27 14:52:59 1.1
--- test309.py 2001/07/29 18:26:18 1.2
***************
*** 8,13 ****
assert pickle == 1
import pickle
! if pickle == 1:
! raise support.TestWarning("An import should override a local")
foo(1)
--- 8,12 ----
assert pickle == 1
import pickle
! assert pickle != 1
foo(1)
Index: test310c.py
===================================================================
RCS file: /cvsroot/jython/bugtests/test310c.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test310c.py 2001/07/29 14:54:12 1.1
--- test310c.py 2001/07/29 18:26:18 1.2
***************
*** 8,13 ****
assert pickle == 1
import pickle
! if pickle == 1:
! raise support.TestWarning("An import should override a local")
foo(1)
--- 8,12 ----
assert pickle == 1
import pickle
! assert pickle != 1
foo(1)
|