python - Suddenly when running tests I get "TypeError: 'NoneType' object is not iterable -
this phenomenally strange me, things working fine until morning.
when attempt run unit test using following (i have python3 soft linked python)
clear; python manage.py test list tests/ i following error message:
traceback (most recent call last): file "manage.py", line 10, in <module> execute_from_command_line(sys.argv) file "/usr/lib/python3.4/site-packages/django/core/management /__init__.py", line 385, in execute_from_command_line utility.execute() file "/usr/lib/python3.4/site-packages/django/core/management /__init__.py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) file "/usr/lib/python3.4/site-packages/django/core/management/commands /test.py", line 50, in run_from_argv super(command, self).run_from_argv(argv) file "/usr/lib/python3.4/site-packages/django/core/management /base.py", line 288, in run_from_argv self.execute(*args, **options.__dict__) file "/usr/lib/python3.4/site-packages/django/core/management/commands /test.py", line 71, in execute super(command, self).execute(*args, **options) file "/usr/lib/python3.4/site-packages/django/core/management /base.py", line 338, in execute output = self.handle(*args, **options) file "/usr/lib/python3.4/site-packages/django/core/management/commands /test.py", line 88, in handle failures = test_runner.run_tests(test_labels) file "/usr/lib/python3.4/site-packages/django/test/runner.py", line 146, in run_tests suite = self.build_suite(test_labels, extra_tests) file "/usr/lib/python3.4/site-packages/django/test/runner.py", line 101, in build_suite suite.addtests(tests) file "/usr/lib64/python3.4/unittest/suite.py", line 60, in addtests test in tests: typeerror: 'nonetype' object not iterable i thought wrote messed up, saved branch, reverted in master branch commit works exact same error message.
i can't think of did make things fail this, in fact, above doesn't point i've written (in case, i'm relatively new python/django) making difficult me debug error.
the thing can think of changed installation of the silver searcher (i use vim) removed , still same error happens.
i've reinstalled django, still no avail.
this on:
- opensuse 13.2
- django 1.7
- python 3.4.1
can me out in
- debugging cause of error (so don't fall in again)
- how go fixing this?
thank you
i wasn't able explain why so, when ran "python manage.py test list/" without specifying file name, things worked well.
thanks user ella shar, changing scheme/layout set tests approved dotted format described in documentation
Comments
Post a Comment