<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">> ======================================================================<br>
> FAIL: test_loading_and_dumping (fixtures.tests.FixtureLoadingTests)<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
>   File "/«PKGBUILDDIR»/tests/fixtures/tests.py", line 170, in test_loading_and_dumping<br>
>     self.assertEqual(len(w), 0)<br>
> AssertionError: 1 != 0<br></blockquote><div><br></div><div><br></div><div>Ok, I can reproduce this myself.</div><div><br></div><div><div class="gmail_extra">To reproduce without running all the tests:</div><div class="gmail_extra"><br></div><div class="gmail_extra">cd tests</div><div class="gmail_extra">LOCPATH=/tmp/tmp-locales LC_ALL=en_US.UTF-8 PYTHONPATH=.. python3 ./runtests.py --verbosity=2 fixtures.tests.FixtureLoadingTests</div></div><div class="gmail_extra"><br></div><div>The code in question is:</div><div><br></div><div>        # An attempt to load a nonexistent 'initial_data' fixture isn't an error </div><div>        with warnings.catch_warnings(record=True) as w:                          </div><div>            management.call_command('loaddata', 'initial_data.json', verbosity=0)</div><div>        self.assertEqual(len(w), 0)                                              </div><div><br></div></div>So to me it looks like loaddata is generating 1 warning, when we were hoping for no warnings.</div><div class="gmail_extra"><br></div><div class="gmail_extra">It would appear to be a Python3 specific problem.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The value of w[0] at the time of the failure is:</div><div class="gmail_extra"><br></div><div class="gmail_extra">"{message : RemovedInDjango19Warning('initial_data fixtures are deprecated. Use data migrations instead.',), category : 'RemovedInDjango19Warning', filename : '/home/brian/tree/debian/unstable/python-django/python-django/django/core/management/commands/loaddata.py', lineno : 230, line : None}"</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now I am a bit puzzled as to (a) why this didn't occur previously or on wheezy, and (b) why it only happens with Python3.</div><div class="gmail_extra">-- <br></div><div class="gmail_extra">Brian May <<a href="mailto:brian@microcomaustralia.com.au" target="_blank">brian@microcomaustralia.com.au</a>>
</div></div>