1 |
On Mon, May 20, 2013 at 1:36 PM, IAN DELANEY <della5@×××××××××.au> wrote: |
2 |
> On Mon, 20 May 2013 13:18:53 +0400 |
3 |
> "Nikolaj Sjujskij" <sterkrig@×××××××.com> wrote: |
4 |
> |
5 |
>> Den 2013-05-20 13:05:33 skrev IAN DELANEY <della5@×××××××××.au>: |
6 |
>> |
7 |
>> ... |
8 |
>> -c cmd : program passed in as string (_terminates option list_) |
9 |
>> |
10 |
>> So ${test} seems to be ignored or misinterpreted. |
11 |
>> |
12 |
>> |
13 |
>> You could try creating ./global_settings.py in : |
14 |
>> |
15 |
>> from django.conf import global_settings |
16 |
>> global_settings.SECRET_KEY='green' |
17 |
>> |
18 |
>> print(global_settings) # testing purposes! |
19 |
>> |
20 |
>> Now: |
21 |
>> % python -c 'import global_settings' |
22 |
>> <module 'django.conf.global_settings' from |
23 |
>> '/usr/lib64/python2.7/site-packages/django/conf/global_settings.pyc'> |
24 |
> |
25 |
> Ja, tack tack for att forsoka, med nej. (Please add the grammatical |
26 |
> nice-ities to the vowel o). I got a fix from #django on the second |
27 |
> attempt. I was close on the first attempt, so for the benefit of all, |
28 |
> |
29 |
> first export SECRET_KEY='green', followed by |
30 |
> |
31 |
> - "from django.conf import \ |
32 |
> global_settings;global_settings.SECRET_KEY='green'" ${test} |
33 |
> + "from django.conf import \ |
34 |
> global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" ${test} |
35 |
> |
36 |
> and presto. |
37 |
> |
38 |
> * python2_7: running distutils-r1_run_phase python_test |
39 |
> * test test_compiler.py passed under python2.7 |
40 |
> * test test_compressor.py passed under python2.7 |
41 |
> |
42 |
> another bug bites the dust. |
43 |
> |
44 |
|
45 |
Ian: |
46 |
|
47 |
You have NOT fixed a bug; rather you have masked one. As Nikolaj |
48 |
indicates, python -c "code" foo.py does NOT run foo.py. |
49 |
|
50 |
The change you have made causes the tests to be skipped entirely. A |
51 |
message stating "tests passed" does not signify that anything was |
52 |
actually run. |
53 |
|
54 |
If you cannot figure this out, please remove python_test from any |
55 |
ebuilds you have modified. At least that way we don't give the false |
56 |
impression that the tests have actually passed. |