What steps will reproduce the problem?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="iso-8859-1">
<script src="../brython.js"></script>
<script type="text/javascript">
var count = 1;
</script>
</head>
<body onLoad="brython()">
<script type="text/python">
count = count +1
assert count ==2
print('OK, count is 2 : %d'%count)
</script>
</body>
</html>
What is the expected output? What do you see instead?
OK, count is 2 : 2
instead we get this line plus an assertion error
OK, count is 2 : 2
AssertionError: @
file:///home/carlo/Dropbox/Android/work/brytest/brython.js:3690
or if comment the assert line:
OK, count is 2 : 2
OK, count is 2 : 3
What version of the product are you using? On what operating system?
Brython version 1.1.20130217-084411
Linux Mint 14
Please provide any additional information below.
works fine in Brython version 1.0.20130214-215612
Original issue reported on code.google.com by ca...@nce.ufrj.br on 17 Feb 2013 at 12:50
Original issue reported on code.google.com by
ca...@nce.ufrj.br
on 17 Feb 2013 at 12:50