[EMAIL PROTECTED]
> Update of /cvsroot/python/python/dist/src/Lib
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4891/Lib
> 
> Modified Files:
>        Cookie.py
> Log Message:
> bug [ 1108948 ] Cookie.py produces invalid code
> 
> 
> 
> Index: Cookie.py
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Lib/Cookie.py,v
> retrieving revision 1.17
> retrieving revision 1.18
> diff -u -d -r1.17 -r1.18
> --- Cookie.py   20 Oct 2003 14:01:49 -0000      1.17
> +++ Cookie.py   26 Jun 2005 21:02:49 -0000      1.18
> @@ -470,9 +470,9 @@
>     def js_output(self, attrs=None):
>         # Print javascript
>         return """
> -        <SCRIPT LANGUAGE="JavaScript">
> +        <script type="text/javascript">
>         <!-- begin hiding
> -        document.cookie = \"%s\"
> +        document.cookie = \"%s\";
>         // end hiding -->
>         </script>
>         """ % ( self.OutputString(attrs), )

I assume this accounts for the current failure of test_cookie:

test_cookie
test test_cookie produced unexpected output:
**********************************************************************
*** mismatch between line 19 of expected output and line 19 of actual output:
-         <SCRIPT LANGUAGE="JavaScript">
+         <script type="text/javascript">
*** mismatch between line 21 of expected output and line 21 of actual output:
-         document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme; Version=1;"
+         document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme; Version=1;";
?                                                                             +
*** mismatch between line 26 of expected output and line 26 of actual output:
-         <SCRIPT LANGUAGE="JavaScript">
+         <script type="text/javascript">
*** mismatch between line 28 of expected output and line 28 of actual output:
-         document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme;"
+         document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme;";
?                                                                  +
**********************************************************************
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to