[Zope3-dev] running zope.testing tests on Windows

Chris Withers chris at simplistix.co.uk
Tue Apr 24 11:37:17 EDT 2007


Hi All,

I tried to run the test for zope.testing on Windows, I got errors (see 
the attached .txt file for the whole session)

Am I doing something wrong or are these genuine failures on Windows?

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk
-------------- next part --------------
C:\LocalSVN\zope.testing\src>python ..\test.py -m  zope.testing
Running unit tests:


Failure in test ..\src\zope\testing\testrunner-edge-cases.txt
Failed doctest test for testrunner-edge-cases.txt
  File "..\src\zope\testing\testrunner-edge-cases.txt", line 0

----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 83, in testrunner-edg
e-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
Expected:
    Running unit tests:
    --Return--
    > ...->None
    -> pdb.Pdb.set_trace(self)
    (Pdb) n
    > testrunner-ex/sample3/sampletests_d.py(NNN)f()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
Got:
    Running unit tests:
    --Return--
    > ...->None
    -> # [XX] Normalize with respect to os.path.pardir?
    (Pdb) n
    > testrunner-ex/sample3/sampletests_d.py(NNN)f()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 103, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
Expected:
    Running unit tests:
    --Return--
    > ...->None
    -> pdb.Pdb.set_trace(self)
    (Pdb) n
    > <doctest sample3.sampletests_d.set_trace3[1]>(3)...()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
Got:
    Running unit tests:
    --Return--
    > ...->None
    -> # [XX] Normalize with respect to os.path.pardir?
    (Pdb) n
    > <doctest sample3.sampletests_d.set_trace3[1]>(3)?()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 124, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
Expected:
    Running unit tests:
    --Return--
    > ...->None
    -> pdb.Pdb.set_trace(self)
    (Pdb) n
    > <doctest set_trace5.txt[1]>(3)...()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
Got:
    Running unit tests:
    --Return--
    > ...->None
    -> # [XX] Normalize with respect to os.path.pardir?
    (Pdb) n
    > <doctest set_trace5.txt[1]>(3)?()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 146, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
Expected:
    Running unit tests:
    --Return--
    > ...->None
    -> pdb.Pdb.set_trace(self)
    (Pdb) n
    > testrunner-ex/sample3/sampletests_d.py(NNN)f()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
Got:
    Running unit tests:
    --Return--
    > ...->None
    -> # [XX] Normalize with respect to os.path.pardir?
    (Pdb) n
    > testrunner-ex/sample3/sampletests_d.py(NNN)f()
    -> y = x
    (Pdb) p x
    1
    (Pdb) c
      Ran 1 tests with 0 failures and 0 errors in N.NNN seconds.
    False
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 196, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
    # doctest: +NORMALIZE_WHITESPACE
Expected:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error in test post_mortem3 (sample3.sampletests_d)
    Traceback (most recent call last):
    UnexpectedException:
     testrunner-ex/sample3/sampletests_d.py:NNN (2 examples)>
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > <doctest sample3.sampletests_d.post_mortem3[1]>(1)...()
    (Pdb) p x
    1
    (Pdb) c
    True
Got:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error in test post_mortem3 (sample3.sampletests_d)
    Traceback (most recent call last):
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > <doctest sample3.sampletests_d.post_mortem3[1]>(1)?()
    (Pdb) p x
    1
    (Pdb) c
    True
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 230, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
    # doctest: +NORMALIZE_WHITESPACE
Expected:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error in test post_mortem4 (sample3.sampletests_d)
    Traceback (most recent call last):
    UnexpectedException: testrunner-ex/sample3/sampletests_d.py:NNN (1 example)>

    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > testrunner-ex/sample3/sampletests_d.py(NNN)g()
    -> raise ValueError
    (Pdb) p x
    1
    (Pdb) c
    True
Got:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error in test post_mortem4 (sample3.sampletests_d)
    Traceback (most recent call last):
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > testrunner-ex/sample3/sampletests_d.py(NNN)g()
    -> raise ValueError
    (Pdb) p x
    1
    (Pdb) c
    True
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 264, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
    # doctest: +NORMALIZE_WHITESPACE
Expected:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error testrunner-ex/sample3/post_mortem5.txt
    Traceback (most recent call last):
    UnexpectedException: testrunner-ex/sample3/post_mortem5.txt:0 (2 examples)>
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > <doctest post_mortem5.txt[1]>(1)...()
    (Pdb) p x
    1
    (Pdb) c
    True
Got:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error testrunner-ex/sample3/post_mortem5.txt
    Traceback (most recent call last):
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > <doctest post_mortem5.txt[1]>(1)?()
    (Pdb) p x
    1
    (Pdb) c
    True
----------------------------------------------------------------------
File "..\src\zope\testing\testrunner-edge-cases.txt", line 298, in testrunner-ed
ge-cases.txt
Failed example:
    try: testrunner.run(defaults)
    finally: sys.stdin = real_stdin
    # doctest: +NORMALIZE_WHITESPACE
Expected:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error testrunner-ex/sample3/post_mortem6.txt
    Traceback (most recent call last):
    UnexpectedException: testrunner-ex/sample3/post_mortem6.txt:0 (2 examples)>
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > testrunner-ex/sample3/sampletests_d.py(NNN)g()
    -> raise ValueError
    (Pdb) p x
    1
    (Pdb) c
    True
Got:
    Running unit tests:
    <BLANKLINE>
    <BLANKLINE>
    Error testrunner-ex/sample3/post_mortem6.txt
    Traceback (most recent call last):
    <BLANKLINE>
    exceptions.ValueError:
    <BLANKLINE>
    > testrunner-ex/sample3/sampletests_d.py(NNN)g()
    -> raise ValueError
    (Pdb) p x
    1
    (Pdb) c
    True

  Ran 141 tests with 1 failures and 0 errors in 28.031 seconds.


More information about the Zope3-dev mailing list