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 2EBBC1381F3 for ; Tue, 21 May 2013 09:37:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F2F2E0814; Tue, 21 May 2013 09:37:18 +0000 (UTC) Received: from icp-osb-irony-out7.external.iinet.net.au (icp-osb-irony-out7.external.iinet.net.au [203.59.1.224]) by pigeon.gentoo.org (Postfix) with ESMTP id 9C6DDE0814 for ; Tue, 21 May 2013 09:37:17 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkMKALA/m1F8qa9W/2dsb2JhbABZHoJqMMFSgQkWdIIfAQEEATpECwsNFCUPEDgZGodtBbt5jygWgz4DiR2FBYkVhkKKf4McLw X-IronPort-AV: E=Sophos;i="4.87,713,1363104000"; d="scan'208";a="127649091" Received: from unknown (HELO archtester.homenetwork) ([124.169.175.86]) by icp-osb-irony-out7.iinet.net.au with ESMTP; 21 May 2013 17:37:15 +0800 Date: Wed, 22 May 2013 01:35:24 +0800 From: IAN DELANEY To: gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] recent trend of django-foo tests Message-ID: <20130522013524.6a288215@archtester.homenetwork> In-Reply-To: References: <20130520170533.462ab085@archtester.homenetwork> <20130521013616.694f7026@archtester.homenetwork> Organization: homenetwork X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; 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: 2e8ce67e-9c2a-4848-b6ea-44f847b927c7 X-Archives-Hash: cb42046d5ebb4d7c8979e81fb23b0447 On Tue, 21 May 2013 12:56:50 +0400 "Nikolaj Sjujskij" wrote: > Den 2013-05-20 20:37:53 skrev IAN DELANEY : > > > Ja, tack tack for att forsoka, med nej. (Please add the grammatical > > nice-ities to the vowel o). > I've got bad news for you: actually my native language is Russian :) > Oh dear, more bad news, this isn't a good week. Header read; "Den 2013-05-20 20:37:53 skrev" Den is 'the', skrev is wrote in swedish. > > 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} well I'm open to an explanation too, but in brief, he said set the key in bash, then on a second attempt on re-reading my query more closely, he corrected it to the above. An alternate was SECRET_KEY="green" python -c ..., that is pre-pending the setting of the secret key to the call to python, which should work if you try. I settled for the above. > I positively fail to see how that change could fix anything. > > % python global_settings.py > '/usr/lib64/python2.7/site-packages/django/conf/global_settings.pyc'> > I'm guessing here the manufactured global_settings.py could be used effectively, I'd have to go back and try some more to do so. But hey thx for the effort. > % python -c 'import sys; print sys.platform' global_settings.py > linux2 > > > 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. > Well, if that somehow had worked, it's all right, I guess. > a good news snippet to offset the bad. What can I say? -- kind regards Ian Delaney