From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0E09C1381F3 for ; Mon, 20 May 2013 17:36:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDE4FE0384; Mon, 20 May 2013 17:36:16 +0000 (UTC) Received: from icp-osb-irony-out5.external.iinet.net.au (icp-osb-irony-out5.external.iinet.net.au [203.59.1.221]) by pigeon.gentoo.org (Postfix) with ESMTP id D9259E0384 for ; Mon, 20 May 2013 17:36:15 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At4FAHtemlF8qa9W/2dsb2JhbABagwgwwUKBAhZ0gh8BAQQBOkQLCw0UJQ8QOBmIBwW8K48oFoM+A4kdhQWJFYZCin+DHC8 X-IronPort-AV: E=Sophos;i="4.87,709,1363104000"; d="scan'208";a="125256155" Received: from unknown (HELO archtester.homenetwork) ([124.169.175.86]) by icp-osb-irony-out5.iinet.net.au with ESMTP; 21 May 2013 01:36:13 +0800 Date: Tue, 21 May 2013 01:36:16 +0800 From: IAN DELANEY To: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] recent trend of django-foo tests Message-ID: <20130521013616.694f7026@archtester.homenetwork> In-Reply-To: References: <20130520170533.462ab085@archtester.homenetwork> Organization: homenetwork X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 9dd30732-8662-4f68-8b43-4a12e9060d03 X-Archives-Hash: 2f2ff8f53ef29d90ab3732f391168f1e On Mon, 20 May 2013 13:18:53 +0400 "Nikolaj Sjujskij" wrote: > Den 2013-05-20 13:05:33 skrev IAN DELANEY : > > ... > -c cmd : program passed in as string (_terminates option list_) > > So ${test} seems to be ignored or misinterpreted. > > > You could try creating ./global_settings.py in : > > from django.conf import global_settings > global_settings.SECRET_KEY='green' > > print(global_settings) # testing purposes! > > Now: > % python -c 'import global_settings' > '/usr/lib64/python2.7/site-packages/django/conf/global_settings.pyc'> Ja, tack tack for att forsoka, med nej. (Please add the grammatical nice-ities to the vowel o). I got a fix from #django on the second attempt. I was close on the first attempt, so for the benefit of all, first export SECRET_KEY='green', followed by - "from django.conf import \ global_settings;global_settings.SECRET_KEY='green'" ${test} + "from django.conf import \ global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" ${test} and presto. * python2_7: running distutils-r1_run_phase python_test * test test_compiler.py passed under python2.7 * test test_compressor.py passed under python2.7 another bug bites the dust. -- kind regards Ian Delaney