Re: process_executor.py error

From: Usman Muzaffar <usman(dot)muzaffar(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: process_executor.py error
Date: 2018-10-11 11:50:42
Message-ID: CAOiUKEMehLh-LiEs+xxbbJFLUpToY+XS9=XdDC0hftSKR+rjmA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

+++ a little more information for the issue

i - The file(log_file) mode was 'ab' due to which it was throwing
concatenation error.
ii- I have change the file opening mode to 'a' after which the issue is not
encountered.

The issue can be reproduced as following

i) Enable Python 3.6 virtual environment
ii) move to web/regression folder
iii) trigger following command
python runtests.py --exclude feature_tests
iv) The terminal will show the error while any test case throws exception
and that is caught.

On Thu, Oct 11, 2018 at 3:46 PM, Usman Muzaffar <
usman(dot)muzaffar(at)enterprisedb(dot)com> wrote:

> Hi Hackers,
>
> While running API test cases, i encountered following error in
> process_executor.py file
>
> ==============================================
>
> fp.write('EXCEPTION::\n{0}'.format(res))
>
> TypeError: a bytes-like object is required, not 'str'
>
> ==============================================
>
>
>
> so changed the file opening mode to 'a'. The API test cases are again run
> without this error with following versions
> i) Python 2.7
> ii) Python 3.4
> iii) Python 3.5
> iiii) Python 3.6
>
> Please review the patch and commit.
>
>
> --
>
>
> Thanks,
>
> Usman Muzaffar
> QA Team
> EnterpriseDB Corporation
>

--

Thanks,

Usman Muzaffar
QA Team
EnterpriseDB Corporation

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2018-10-11 11:52:47 Re: [pgAdmin4][RM3562] Migrate Bootstrap 3 to Bootstrap 4
Previous Message Usman Muzaffar 2018-10-11 10:46:29 process_executor.py error