Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1333

Console test fails printing to file with python 3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.0
    • Fix Version/s: 1.8.0
    • Component/s: Tests
    • Labels:
      None
    • Environment:

      Fedora 29, Python 3, proton and dispatch master branches

      Description

      test 53
          Start 53: system_tests_console
      
      53: Test command: /bin/python "/home/chug/git/qpid-dispatch/build/tests/run.py" "unit2" "-v" "system_tests_console"
      53: Test timeout computed to be: 1500
      53: test_console (system_tests_console.ConsoleTest) ... ERROR
      53: 
      53: ======================================================================
      53: ERROR: test_console (system_tests_console.ConsoleTest)
      53: ----------------------------------------------------------------------
      53: Traceback (most recent call last):
      53:   File "/home/chug/git/qpid-dispatch/tests/system_test.py", line 706, in wrap
      53:     return f(*args, **kwargs)
      53:   File "/home/chug/git/qpid-dispatch/tests/system_tests_console.py", line 132, in test_console
      53:     self.run_console_test()
      53:   File "/home/chug/git/qpid-dispatch/tests/system_tests_console.py", line 116, in run_console_test
      53:     popenfile.writelines(out)
      53: TypeError: write() argument must be str, not int
      53: 
      53: ----------------------------------------------------------------------
      53: Ran 1 test in 0.959s
      53: 
      53: FAILED (errors=1)
      1/1 Test #53: system_tests_console .............***Failed    1.63 sec
      
      0% tests passed, 1 tests failed out of 1
      

       The test passes with the attached patch.

      The content of the failed printout is attached.

       

       

        Attachments

        1. console-test.patch
          0.6 kB
          Charles E. Rolke
        2. run_console_test.out.txt
          4 kB
          Charles E. Rolke

          Activity

            People

            • Assignee:
              chug Charles E. Rolke
              Reporter:
              chug Charles E. Rolke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: