SeattleTestbed / utf

Unit Test Framework for SeattleTestbed
MIT License
1 stars 9 forks source link

[Newcomer] Some unit tests fail on Python 2.7.3 #51

Open choksi81 opened 10 years ago

choksi81 commented 10 years ago

'''Problem''' A good portion of Repy unit tests pass on Python 2.7.2 but fail on 2.7.3, due to the same error:

Exception safety_exceptions.RunBuiltinException: RunBuiltinException() in <bound
 method Popen.__del__ of <subprocess.Popen object at 0x030D7CF0>> ignored

'''Guides''' How to run Repy unit tests: https://seattle.poly.edu/wiki/UnitTests How to have multiple Python versions: http://iamzed.com/2009/05/07/a-primer-on-virtualenv/

priyam3nidhi commented 9 years ago

I tried running this on Python 2.7.3 on both Linux and Windows 8. No such exception was encountered. Below is a run-down of the steps for execution:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Pbijv>cd "C:\Users\Pbijv\Desktop\utf-add-seattlelib_v2\RUNNABLE"

C:\Users\Pbijv\Desktop\utf-add-seattlelib_v2\RUNNABLE>python utf.py -a
Testing module: stagedtest
        Running: ut_stagedtest_falsetestone.py                      [ PASS ]
        Running: ut_stagedtest_falsetesttwo.py                      [ PASS ]
Testing module: stagedtestmultiline
        Running: ut_stagedtestmultiline_missing_error.py            [ FAIL ]
--------------------------------------------------------------------------------

Standard error :
..............................Produced..............................

..............................Expected..............................
message one
message two

--------------------------------------------------------------------------------

Standard out :
..............................Produced..............................
Error message two

..............................Expected..............................
None
--------------------------------------------------------------------------------

        Running: ut_stagedtestmultiline_missing_mixed.py            [ FAIL ]
--------------------------------------------------------------------------------

Standard error :
..............................Produced..............................

..............................Expected..............................
message one
message two

--------------------------------------------------------------------------------

Standard out :
..............................Produced..............................
Test message two
Error message two

..............................Expected..............................
message one
message two

--------------------------------------------------------------------------------

        Running: ut_stagedtestmultiline_missing_out.py              [ FAIL ]
--------------------------------------------------------------------------------

Standard out :
..............................Produced..............................
Test message two

..............................Expected..............................
message one
message two

--------------------------------------------------------------------------------

Testing module: utftests
        Running: ut_utftests_multiline_compound.py                  [ PASS ]
        Running: ut_utftests_multiline_compound_empty.py            [ PASS ]
        Running: ut_utftests_multiline_missing_error.py             [ PASS ]
        Running: ut_utftests_multiline_missing_mixed.py             [ PASS ]
        Running: ut_utftests_multiline_missing_out.py               [ PASS ]
        Running: ut_utftests_multiline_simple.py                    [ PASS ]
        Running: ut_utftests_multiline_wildcard.py                  [ PASS ]
        Running: ut_utftests_test_file.py                           [ PASS ]
        Running: ut_utftests_test_kill.py                           [ PASS ]
        Running: ut_utftests_test_module.py                         [ PASS ]
        Running: ut_utftests_test_pragma_err_general.py             [ PASS ]
        Running: ut_utftests_test_pragma_err_specific.py            [ PASS ]
        Running: ut_utftests_test_pragma_out_general.py             [ PASS ]
        Running: ut_utftests_test_pragma_out_specific.py            [ PASS ]
        Running: ut_utftests_test_pragma_repy.py                    [ PASS ]
        Running: ut_utftests_test_setup.py                          [ PASS ]
        Running: ut_utftests_test_shutdown.py                       [ PASS ]
        Running: ut_utftests_test_subprocess.py                     [ PASS ]
Testing module: stagedtestsetup
Now starting subprocess: ut_stagedtestsetup_subprocess.py
Now running setup script: ut_stagedtestsetup_setup.py
        Running: ut_stagedtestsetup_setup.py                        [ PASS ]
Now running shutdown script: ut_stagedtestsetup_shutdown.py
        Running: ut_stagedtestsetup_shutdown.py                     [ PASS ]
Now stopping subprocess: ut_stagedtestsetup_subprocess.py

C:\Users\Pbijv\Desktop\utf-add-seattlelib_v2\RUNNABLE>python --version
Python 2.7.3

C:\Users\Pbijv\Desktop\utf-add-seattlelib_v2\RUNNABLE>