[pgadmin-hackers][Patch] Python 3 compatibility - Mailing list pgadmin-hackers

From George Gelashvili
Subject [pgadmin-hackers][Patch] Python 3 compatibility
Date
Msg-id CAHowoHYJqHk-R--GvpN--=B2oMPz50XXhmG_w1VyGc3B60U1dA@mail.gmail.com
Whole thread Raw
Responses Re: [pgadmin-hackers][Patch] Python 3 compatibility  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hello

We stumbled on the following error when running tests off of master:

Traceback (most recent call last):
  File "web/regression/runtests.py", line 254, in <module>
    servers_info = test_utils.get_config_data()
  File "/Users/pivotal/workspace/pgadmin4/web/regression/test_utils.py", line 72, in get_config_data
    if (not srv.has_key('enabled')) or srv['enabled'] == True:
AttributeError: 'dict' object has no attribute 'has_key'

Please find attached a fix for this.

- George & Tira


Attachment

pgadmin-hackers by date:

Previous
From: George Gelashvili
Date:
Subject: Re: [pgadmin-hackers] Acceptance Tests against a browser (WIP)
Next
From: George Gelashvili
Date:
Subject: Re: [pgadmin-hackers] Acceptance Tests against a browser (WIP)