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

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12788</bug_id>
          
          <creation_ts>2018-06-14 07:17:54 +0000</creation_ts>
          <short_desc>[2.4.3.rc2] python ptest failed</short_desc>
          <delta_ts>2018-10-08 23:40:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="yeoh ee peng">ee.peng.yeoh</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>manish.das</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80784</commentid>
    <comment_count>0</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-06-14 07:17:54 +0000</bug_when>
    <thetext>Perform diff and found that python tests (test_compile_files, test_magic_number, test_mtime, and more)  that passing in 2.4.2.rc2 are failing on 2.4.3.rc2

--- a/python (2.4.2.rc2)
+++ b/python (2.4.3.rc2)

-PASS: test_compile_files (test.test_compileall.CompileallTests)
-PASS: test_magic_number (test.test_compileall.CompileallTests)
-PASS: test_mtime (test.test_compileall.CompileallTests)
+FAIL: test_compile_files (test.test_compileall.CompileallTests)
+FAIL: test_magic_number (test.test_compileall.CompileallTests)
+FAIL: test_mtime (test.test_compileall.CompileallTests)
-PASS: test_http2time (test.test_cookielib.DateTimeTests)
-PASS: test_http2time_formats (test.test_cookielib.DateTimeTests)
+FAIL: test_http2time (test.test_cookielib.DateTimeTests)
+FAIL: test_http2time_formats (test.test_cookielib.DateTimeTests)

-PASS: test_check_hostname (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_context (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_control_connection (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_data_connection (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_login (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_check_hostname (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_context (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_control_connection (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_data_connection (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_login (test.test_ftplib.TestTLS_FTPClass)

-PASS: test_basics (test.test_import.PycRewritingTests)
-PASS: test_foreign_code (test.test_import.PycRewritingTests)
-PASS: test_incorrect_code_name (test.test_import.PycRewritingTests)
+FAIL: test_basics (test.test_import.PycRewritingTests)
+FAIL: test_foreign_code (test.test_import.PycRewritingTests)
+FAIL: test_incorrect_code_name (test.test_import.PycRewritingTests)

-PASS: test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests)
+FAIL: test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests)
 PASS: A brutal shutdown of an SSL server should raise an OSError
-PASS: test_server_accept (test.test_ssl.ThreadedTests)
+FAIL: test_server_accept (test.test_ssl.ThreadedTests)

-PASS: test_date (test.test_strptime.StrptimeTests)
+FAIL: test_date (test.test_strptime.StrptimeTests)


-PASS: test_year (test.test_strptime.StrptimeTests)
+FAIL: test_year (test.test_strptime.StrptimeTests)

-PASS: test_redirect_no_path (test.test_urllib2.HandlerTests)
+FAIL: test_redirect_no_path (test.test_urllib2.HandlerTests)

-PASS: test_basic_auth_success (test.test_urllib2_localnet.BasicAuthTests)
+FAIL: test_basic_auth_success (test.test_urllib2_localnet.BasicAuthTests)
-PASS: test_compile_files (test.test_compileall.CompileallTests)
-PASS: test_magic_number (test.test_compileall.CompileallTests)
-PASS: test_mtime (test.test_compileall.CompileallTests)
+FAIL: test_compile_files (test.test_compileall.CompileallTests)
+FAIL: test_magic_number (test.test_compileall.CompileallTests)
+FAIL: test_mtime (test.test_compileall.CompileallTests)


-PASS: test_http2time (test.test_cookielib.DateTimeTests)
-PASS: test_http2time_formats (test.test_cookielib.DateTimeTests)
+FAIL: test_http2time (test.test_cookielib.DateTimeTests)
+FAIL: test_http2time_formats (test.test_cookielib.DateTimeTests)

-PASS: test_check_hostname (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_context (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_control_connection (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_data_connection (test.test_ftplib.TestTLS_FTPClass)
-PASS: test_login (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_check_hostname (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_context (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_control_connection (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_data_connection (test.test_ftplib.TestTLS_FTPClass)
+FAIL: test_login (test.test_ftplib.TestTLS_FTPClass)

-PASS: test_basics (test.test_import.PycRewritingTests)
-PASS: test_foreign_code (test.test_import.PycRewritingTests)
-PASS: test_incorrect_code_name (test.test_import.PycRewritingTests)
+FAIL: test_basics (test.test_import.PycRewritingTests)
+FAIL: test_foreign_code (test.test_import.PycRewritingTests)
+FAIL: test_incorrect_code_name (test.test_import.PycRewritingTests)

-PASS: test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests)
+FAIL: test_read_write_after_close_raises_valuerror (test.test_ssl.ThreadedTests)
 PASS: A brutal shutdown of an SSL server should raise an OSError
-PASS: test_server_accept (test.test_ssl.ThreadedTests)
+FAIL: test_server_accept (test.test_ssl.ThreadedTests)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80789</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-06-14 14:58:02 +0000</bug_when>
    <thetext>My hunch is that python-ptest doesn&apos;t depend on *all* of the Python library packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81364</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-15 16:21:34 +0000</bug_when>
    <thetext>running test against latest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81365</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2018-08-15 16:56:56 +0000</bug_when>
    <thetext>currently seeing these failures:

FAIL: test_getattr (test.test_builtin.BuiltinTest)
FAIL: test_hasattr (test.test_builtin.BuiltinTest)
FAIL: test_hasattr (test.test_builtin.BuiltinTest)
FAIL: Check same msg for exceptions with 0 args and overridden __str__
FAIL: Check same msg for Exceptions with 1 arg
FAIL: Check same msg for exceptions with overridden __str__ and 1 arg
FAIL: Check same msg for exceptions with overridden __str__ and many args
FAIL: test_0_args_with_overridden___str__ (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_1_arg (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_1_arg_with_overridden___str__ (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_many_args_with_overridden___str__ (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_unicode (test.test_StringIO.TestcStringIO)
FAIL: test_unicode (test.test_StringIO.TestcStringIO)
FAIL: test_output_htmlcalendar (test.test_calendar.OutputTestCase)
FAIL: test_output_htmlcalendar (test.test_calendar.OutputTestCase)
FAIL: test_basic_script (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpXzFI_5/script.py&apos;:
FAIL: test_directory (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmp3bo47W&apos;:
FAIL: test_directory_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpCRBJAD&apos;:
FAIL: test_directory_error (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmp3JEJ7X&apos;:
FAIL: test_module_in_package (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpVSBSXY/launch.py&apos;:
FAIL: test_module_in_package_in_zipfile (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpqx0kZy/launch.py&apos;:
FAIL: test_module_in_subpackage_in_zipfile (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpc2YAYT/launch.py&apos;:
FAIL: test_package (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpgVJEhI/launch.py&apos;:
FAIL: test_package_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpmUaQro/launch.py&apos;:
FAIL: test_package_error (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmp3BA0Nh/launch.py&apos;:
FAIL: test_package_recursion (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpfrnWsV/launch.py&apos;:
FAIL: test_script_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmp2sWkG8/script.pyc&apos;:
FAIL: test_zipfile (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmp6NffD_/test_zip.zip&apos;:
FAIL: test_zipfile_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpoVHT1r/test_zip.zip&apos;:
FAIL: test_zipfile_error (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpIHoD_v/test_zip.zip&apos;:
FAIL: test_invalid_name (ctypes.test.test_structures.StructureTestCase)
FAIL: test_getattr (test.test_builtin.BuiltinTest)
FAIL: test_hasattr (test.test_builtin.BuiltinTest)
FAIL: test_hasattr (test.test_builtin.BuiltinTest)
FAIL: Check same msg for exceptions with 0 args and overridden __str__
FAIL: Check same msg for Exceptions with 1 arg
FAIL: Check same msg for exceptions with overridden __str__ and 1 arg
FAIL: Check same msg for exceptions with overridden __str__ and many args
FAIL: test_0_args_with_overridden___str__ (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_1_arg (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_1_arg_with_overridden___str__ (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_many_args_with_overridden___str__ (test.test_exceptions.TestSameStrAndUnicodeMsg)
FAIL: test_unicode (test.test_StringIO.TestcStringIO)
FAIL: test_unicode (test.test_StringIO.TestcStringIO)
FAIL: test_output_htmlcalendar (test.test_calendar.OutputTestCase)
FAIL: test_output_htmlcalendar (test.test_calendar.OutputTestCase)
FAIL: test_basic_script (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpTfONN6/script.py&apos;:
FAIL: test_directory (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpgtbLth&apos;:
FAIL: test_directory_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpemZyS6&apos;:
FAIL: test_directory_error (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpMUTrNN&apos;:
FAIL: test_module_in_package (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpSMinIW/launch.py&apos;:
FAIL: test_module_in_package_in_zipfile (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpZGGV90/launch.py&apos;:
FAIL: test_module_in_subpackage_in_zipfile (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpbiYMd3/launch.py&apos;:
FAIL: test_package (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpN3s55C/launch.py&apos;:
FAIL: test_package_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmptB125_/launch.py&apos;:
FAIL: test_package_error (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpSfRzJf/launch.py&apos;:
FAIL: test_package_recursion (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpRXoCvq/launch.py&apos;:
FAIL: test_script_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpeYMwv4/script.pyc&apos;:
FAIL: test_zipfile (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpNohLD7/test_zip.zip&apos;:
FAIL: test_zipfile_compiled (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpLaqYMv/test_zip.zip&apos;:
FAIL: test_zipfile_error (test.test_cmd_line_script.CmdLineTest) ... Output from test script &apos;/var/volatile/tmp/tmpnY8i8L/test_zip.zip&apos;:
FAIL: test_invalid_name (ctypes.test.test_structures.StructureTestCase)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81370</commentid>
    <comment_count>4</comment_count>
    <who name="yeoh ee peng">ee.peng.yeoh</who>
    <bug_when>2018-08-16 01:22:33 +0000</bug_when>
    <thetext>The focus here was not so much on how many tests pass or fail in current release, but rather the tests that were passing in previous release (eg. 2.4.2) but now failing on current release (eg. 2.4.3) showing that some changes in current release may caused the package functionality to be broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81706</commentid>
    <comment_count>5</comment_count>
    <who name="Manish Das">manish.das</who>
    <bug_when>2018-10-03 10:15:04 +0000</bug_when>
    <thetext>Performed diff and found that python tests that passed in 2.6 M2 rc1 are failing on 2.6 M3 rc1

------------------------------------------------------------------------------
Package Name:  python
------------------------------------------------------------------------------

-PASS: test_options (test.test_ssl.ContextTests)

+FAIL: test_options (test.test_ssl.ContextTests)

-PASS: test_options (test.test_ssl.ContextTests)

+FAIL: test_options (test.test_ssl.ContextTests)

------------------------------------------------------------------------------
Total number of test cases passing in Previous release but failing in Current release:  2
------------------------------------------------------------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81709</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-10-03 11:08:29 +0000</bug_when>
    <thetext>Looks like openssl 1.1 broke Python2 too.  Anuj, you worked wonders with Python3, can you take py2 too?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81717</commentid>
    <comment_count>7</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-10-04 00:04:24 +0000</bug_when>
    <thetext>I cherry-picked some patches and looks like it&apos;s fixed now. Will send to list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81782</commentid>
    <comment_count>8</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-10-08 23:40:49 +0000</bug_when>
    <thetext>Merged for ssl tests:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2b4dce4925627c81ee2f27a0eeb2422e15029c3e

If there are any other python tests failing as compared to last runs (like the ones in first comment), please re-open or file a new bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>