<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>49474</bug_id>
          
          <creation_ts>2010-11-12 13:47:04 -0800</creation_ts>
          <short_desc>webkitpy.common.checkout.changelog_unittest fails under Win32 Python</short_desc>
          <delta_ts>2011-07-25 21:23:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>64956</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>48728</blocked>
    
    <blocked>55811</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>dglazkov</cc>
    
    <cc>dpranke</cc>
    
    <cc>eric</cc>
    
    <cc>paroga</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>308758</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-11-12 13:47:04 -0800</bug_when>
    <thetext>To reproduce:

1. python WebKitTools\Scripts\test-webkitpy webkitpy.common.checkout.changelog_unittest

It fails with the following output:

======================================================================
ERROR: test_update_for_revert (webkitpy.common.checkout.changelog_unittest.ChangeLogTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\cygwin\home\Adam Roben\dev\WebKit\OpenSource\WebKitTools\Scripts\webkitpy\common\checkout\changelog_unittest.py&quot;, line 198, in test_update_for_revert
    self._assert_update_for_revert_output([12345, &quot;Reason&quot;], self._revert_entry_without_bug_url)
  File &quot;C:\cygwin\home\Adam Roben\dev\WebKit\OpenSource\WebKitTools\Scripts\webkitpy\common\checkout\changelog_unittest.py&quot;, line 191, in _assert_update_for_revert_output
    self.assertEquals(actual_entry.contents(), expected_entry)
AttributeError: &apos;NoneType&apos; object has no attribute &apos;contents&apos;

======================================================================
FAIL: test_set_reviewer (webkitpy.common.checkout.changelog_unittest.ChangeLogTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\cygwin\home\Adam Roben\dev\WebKit\OpenSource\WebKitTools\Scripts\webkitpy\common\checkout\changelog_unittest.py&quot;, line 132, in test_set_reviewer
    self.assertEquals(actual_contents, expected_contents)
AssertionError: u&quot;2009-08-19  Eric Seidel  &lt;eric@webkit.org&gt;\r\n\r\n        Reviewed by Test Reviewer.\r\n\r\n        Need a short description and bug URL (OOPS!)\r\n\r\n        * Scripts/bugzilla-too
l:\r\n\r\n2009-08-17  Tor Arne Vestb\xf8  &lt;vestbo@webkit.org&gt;\r\n\r\n        &lt;http://webkit.org/b/28393&gt; check-webkit-style: add check for use of std::max()/std::min() instead of MAX()/MIN()\r\n\r\n
      Reviewed by David Levin.\r\n\r\n        * Scripts/modules/cpp_style.py:\r\n        (_ERROR_CATEGORIES): Added &apos;runtime/max_min_macros&apos;.\r\n        (check_max_min_macros): Added.  Returns level 4
 error when MAX()\r\n        and MIN() macros are used in header files and C++ source files.\r\n        (check_style): Added call to check_max_min_macros().\r\n        * Scripts/modules/cpp_style_unit
test.py: Added unit tests.\r\n        (test_max_macro): Added.\r\n        (test_min_macro): Added.\r\n\r\n2009-08-16  David Kilzer  &lt;ddkilzer@apple.com&gt;\r\n\r\n        Backed out r47343 which was mist
akenly committed\r\n\r\n        * Scripts/bugzilla-tool:\r\n        * Scripts/modules/scm.py:\r\n\r\n2009-06-18  Darin Adler  &lt;darin@apple.com&gt;\r\n\r\n        Rubber stamped by Mark Rowe.\r\n\r\n
   * DumpRenderTree/mac/DumpRenderTreeWindow.mm:\r\n        (-[DumpRenderTreeWindow close]): Resolved crashes seen during regression\r\n        tests. The close method can be called on a window that&apos;s
 already closed\r\n        so we can&apos;t assert here.\r\n\r\n== Rolled over to ChangeLog-2009-06-16 ==\r\n&quot; != u&quot;2009-08-19  Eric Seidel  &lt;eric@webkit.org&gt;\n\n        Reviewed by Test Reviewer.\n\n
   Need a short description and bug URL (OOPS!)\n\n        * Scripts/bugzilla-tool:\n\n2009-08-17  Tor Arne Vestb\xf8  &lt;vestbo@webkit.org&gt;\n\n        &lt;http://webkit.org/b/28393&gt; check-webkit-style: ad
d check for use of std::max()/std::min() instead of MAX()/MIN()\n\n        Reviewed by David Levin.\n\n        * Scripts/modules/cpp_style.py:\n        (_ERROR_CATEGORIES): Added &apos;runtime/max_min_macr
os&apos;.\n        (check_max_min_macros): Added.  Returns level 4 error when MAX()\n        and MIN() macros are used in header files and C++ source files.\n        (check_style): Added call to check_max_
min_macros().\n        * Scripts/modules/cpp_style_unittest.py: Added unit tests.\n        (test_max_macro): Added.\n        (test_min_macro): Added.\n\n2009-08-16  David Kilzer  &lt;ddkilzer@apple.com&gt;\
n\n        Backed out r47343 which was mistakenly committed\n\n        * Scripts/bugzilla-tool:\n        * Scripts/modules/scm.py:\n\n2009-06-18  Darin Adler  &lt;darin@apple.com&gt;\n\n        Rubber stamp
ed by Mark Rowe.\n\n        * DumpRenderTree/mac/DumpRenderTreeWindow.mm:\n        (-[DumpRenderTreeWindow close]): Resolved crashes seen during regression\n        tests. The close method can be call
ed on a window that&apos;s already closed\n        so we can&apos;t assert here.\n\n== Rolled over to ChangeLog-2009-06-16 ==\n&quot;

======================================================================
FAIL: test_set_short_description_and_bug_url (webkitpy.common.checkout.changelog_unittest.ChangeLogTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;C:\cygwin\home\Adam Roben\dev\WebKit\OpenSource\WebKitTools\Scripts\webkitpy\common\checkout\changelog_unittest.py&quot;, line 144, in test_set_short_description_and_bug_url
    self.assertEquals(actual_contents, expected_contents)
AssertionError: u&quot;2009-08-19  Eric Seidel  &lt;eric@webkit.org&gt;\r\n\r\n        Reviewed by NOBODY (OOPS!).\r\n\r\n        A short description\r\n        http://example.com/b/2344\r\n\r\n        * Scripts
/bugzilla-tool:\r\n\r\n2009-08-17  Tor Arne Vestb\xf8  &lt;vestbo@webkit.org&gt;\r\n\r\n        &lt;http://webkit.org/b/28393&gt; check-webkit-style: add check for use of std::max()/std::min() instead of MAX()/MI
N()\r\n\r\n        Reviewed by David Levin.\r\n\r\n        * Scripts/modules/cpp_style.py:\r\n        (_ERROR_CATEGORIES): Added &apos;runtime/max_min_macros&apos;.\r\n        (check_max_min_macros): Added.  Re
turns level 4 error when MAX()\r\n        and MIN() macros are used in header files and C++ source files.\r\n        (check_style): Added call to check_max_min_macros().\r\n        * Scripts/modules/c
pp_style_unittest.py: Added unit tests.\r\n        (test_max_macro): Added.\r\n        (test_min_macro): Added.\r\n\r\n2009-08-16  David Kilzer  &lt;ddkilzer@apple.com&gt;\r\n\r\n        Backed out r47343 w
hich was mistakenly committed\r\n\r\n        * Scripts/bugzilla-tool:\r\n        * Scripts/modules/scm.py:\r\n\r\n2009-06-18  Darin Adler  &lt;darin@apple.com&gt;\r\n\r\n        Rubber stamped by Mark Rowe.
\r\n\r\n        * DumpRenderTree/mac/DumpRenderTreeWindow.mm:\r\n        (-[DumpRenderTreeWindow close]): Resolved crashes seen during regression\r\n        tests. The close method can be called on a
window that&apos;s already closed\r\n        so we can&apos;t assert here.\r\n\r\n== Rolled over to ChangeLog-2009-06-16 ==\r\n&quot; != u&quot;2009-08-19  Eric Seidel  &lt;eric@webkit.org&gt;\n\n        Reviewed by NOBODY (OO
PS!).\n\n        A short description\n        http://example.com/b/2344\n\n        * Scripts/bugzilla-tool:\n\n2009-08-17  Tor Arne Vestb\xf8  &lt;vestbo@webkit.org&gt;\n\n        &lt;http://webkit.org/b/28393
&gt; check-webkit-style: add check for use of std::max()/std::min() instead of MAX()/MIN()\n\n        Reviewed by David Levin.\n\n        * Scripts/modules/cpp_style.py:\n        (_ERROR_CATEGORIES): Add
ed &apos;runtime/max_min_macros&apos;.\n        (check_max_min_macros): Added.  Returns level 4 error when MAX()\n        and MIN() macros are used in header files and C++ source files.\n        (check_style):
Added call to check_max_min_macros().\n        * Scripts/modules/cpp_style_unittest.py: Added unit tests.\n        (test_max_macro): Added.\n        (test_min_macro): Added.\n\n2009-08-16  David Kilze
r  &lt;ddkilzer@apple.com&gt;\n\n        Backed out r47343 which was mistakenly committed\n\n        * Scripts/bugzilla-tool:\n        * Scripts/modules/scm.py:\n\n2009-06-18  Darin Adler  &lt;darin@apple.com&gt;
\n\n        Rubber stamped by Mark Rowe.\n\n        * DumpRenderTree/mac/DumpRenderTreeWindow.mm:\n        (-[DumpRenderTreeWindow close]): Resolved crashes seen during regression\n        tests. The
close method can be called on a window that&apos;s already closed\n        so we can&apos;t assert here.\n\n== Rolled over to ChangeLog-2009-06-16 ==\n&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>308759</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-11-12 13:47:51 -0800</bug_when>
    <thetext>The actual_contents has \r\n line-endings, while the expected_contents has \n line-endings. It looks like \n is being turned into \r\n by FileInput, which opens the fake sys.stdout in text mode, not binary mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>442096</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-07-25 21:23:15 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 64956 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>