Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYVIb-0000gx-Fp for pgadmin-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 10:04:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYVIa-0007u0-NS for pgadmin-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 10:04:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYVIa-0007ts-8F for pgadmin-hackers@postgresql.org; Tue, 31 Jan 2017 10:04:28 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cYVIX-0006jH-La for pgadmin-hackers@postgresql.org; Tue, 31 Jan 2017 10:04:27 +0000 Received: by mail-it0-x236.google.com with SMTP id 203so213306430ith.0 for ; Tue, 31 Jan 2017 02:04:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tscY3WW2OOHfjUr2WwSI8z8CtnisJoYPhHmCi5aCfbY=; b=yuoyoEux6aTryeWnR0smf5awAsG7YZLJ4Xg74VWjkpoeA11ER4zN/Gfk1ilZo7MLnE DLRLbT3ozdAczqomi2u0xeRlBaQQT2WSdgGjTR9VmvUgiLci3hiXBt5mMpxSnHRn+Sdm 2rMhFyxIxh30TskHPTmkkNOn37Zj+II2lW0MYYcBWIKHcLvp7I9iL26+oWwU2Zexq99j IAeYZF7w2unezcRSdznycN5GVWZkbLVIKDRggO2rrgbrJWsPFOuD0Cm1JVeH/f0lKXHf 5xP4lQOZsYZvcMFRmZM3Gvlw3QbldEOZnGZGWZjIEONEgdOH0FJnJdudsx0PAueybGPt 3gtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tscY3WW2OOHfjUr2WwSI8z8CtnisJoYPhHmCi5aCfbY=; b=V1gkhU+WvZ+tH0G+sZIWKCzz7W/fHIAqUnGqQ0sTYeJJkU0EOUBBp8Wgh8KUzupwdx jcKir7qSvbnlUyUsrWQyYBp5KRecsUSqvPNQ+Gniekba5FolCyCYUX2qW+9chjttzezJ mO2Szf/HxyCkX283IJTxS5O39x4P4u60A2LDNIpUTuY0kT3+Jb+OrGyAaub6w9HZmK7I ptF/rkIuiKatRYJwB9x4erOPus0PTDF+mjXlT8cUbeIDabNrqisXt+FqWvK60ywM5khU UKht8oJ6n59QBUofbu0nwBkxtqy55deOkvDP68e6lEqb1lnm4LsRdGVyc3ewIugerDmt uj8Q== X-Gm-Message-State: AIkVDXIEIy/W7QQtMDdo9QDz3ruOPSICs87CDHRT3xL0n1Rw45Kva2Ev9K0yd+4ICIOAEUa+npTwTnYBIcI1mw== X-Received: by 10.36.121.75 with SMTP id z72mr18864758itc.94.1485857064866; Tue, 31 Jan 2017 02:04:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.224.198 with HTTP; Tue, 31 Jan 2017 02:04:24 -0800 (PST) In-Reply-To: References: From: Dave Page Date: Tue, 31 Jan 2017 10:04:24 +0000 Message-ID: Subject: Re: [pgAdmin4][Patch] Minor fix in test file for the Template loader To: Murtuza Zabuawala Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks Murtuza. When you get a minute, can you also look at the following issue I get with the tests under Python 3.5? It doesn't seem to stop them working. Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/route.py", line 75, in load_generators import_module(module_name) File "/Users/dpage/.virtualenvs/pgadmin4-py35/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 673, in exec_module File "", line 222, in _call_with_frames_removed File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/sqlautocomplete/counter.py", line 6, in from itertools import repeat, ifilter ImportError: cannot import name 'ifilter' On Tue, Jan 31, 2017 at 5:25 AM, Murtuza Zabuawala wrote: > Hi, > > PFA patch to fix the issue in test suite for template loader. > > Issue(Python3): > murtuza@vm:~/pgadmin4/web/regression$ python3 runtests.py > pgAdmin 4 - Application Initialisation > ====================================== > > > The configuration database - '/../.pgadmin/test_pgadmin4.db' does not exist. > Entering initial setup mode... > NOTE: Configuring authentication for SERVER mode. > > > The configuration database has been created at /../.pgadmin/test_pgadmin4.db > Traceback (most recent call last): > File "runtests.py", line 250, in > test_module_list = get_test_modules(args) > File "runtests.py", line 138, in get_test_modules > TestsGeneratorRegistry.load_generators('pgadmin') > File "../../pgadmin4/web/pgadmin/utils/route.py", line 66, in > load_generators > import_module(module_name) > File "/../../3.5/lib/python3.5/importlib/__init__.py", line 126, in > import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "", line 986, in _gcd_import > File "", line 969, in _find_and_load > File "", line 958, in _find_and_load_unlocked > File "", line 673, in _load_unlocked > File "", line 658, in exec_module > File "", line 764, in get_code > File "", line 724, in source_to_code > File "", line 222, in > _call_with_frames_removed > File > "/../../pgadmin4/web/pgadmin/utils/tests/test_versioned_template_loader.py", > line 50 > except TemplateNotFound, e: > ^ > SyntaxError: invalid syntax > > -- > Regards, > Murtuza Zabuawala > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers