Gentoo Archives: gentoo-python

From: IAN DELANEY <della5@×××××××××.au>
To: gentoo-python@l.g.o
Subject: Re: [gentoo-python] recent trend of django-foo tests
Date: Mon, 20 May 2013 17:36:20
Message-Id: 20130521013616.694f7026@archtester.homenetwork
In Reply to: Re: [gentoo-python] recent trend of django-foo tests by Nikolaj Sjujskij
1 On Mon, 20 May 2013 13:18:53 +0400
2 "Nikolaj Sjujskij" <sterkrig@×××××××.com> wrote:
3
4 > Den 2013-05-20 13:05:33 skrev IAN DELANEY <della5@×××××××××.au>:
5 >
6 > ...
7 > -c cmd : program passed in as string (_terminates option list_)
8 >
9 > So ${test} seems to be ignored or misinterpreted.
10 >
11 >
12 > You could try creating ./global_settings.py in :
13 >
14 > from django.conf import global_settings
15 > global_settings.SECRET_KEY='green'
16 >
17 > print(global_settings) # testing purposes!
18 >
19 > Now:
20 > % python -c 'import global_settings'
21 > <module 'django.conf.global_settings' from
22 > '/usr/lib64/python2.7/site-packages/django/conf/global_settings.pyc'>
23
24 Ja, tack tack for att forsoka, med nej. (Please add the grammatical
25 nice-ities to the vowel o). I got a fix from #django on the second
26 attempt. I was close on the first attempt, so for the benefit of all,
27
28 first export SECRET_KEY='green', followed by
29
30 - "from django.conf import \
31 global_settings;global_settings.SECRET_KEY='green'" ${test}
32 + "from django.conf import \
33 global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" ${test}
34
35 and presto.
36
37 * python2_7: running distutils-r1_run_phase python_test
38 * test test_compiler.py passed under python2.7
39 * test test_compressor.py passed under python2.7
40
41 another bug bites the dust.
42
43 --
44 kind regards
45
46 Ian Delaney

Replies

Subject Author
Re: [gentoo-python] recent trend of django-foo tests Nikolaj Sjujskij <sterkrig@×××××××.com>
Re: [gentoo-python] recent trend of django-foo tests Mike Gilbert <floppym@g.o>