1. Mikhail Korobov
  2. django-coverage
  3. Issues
Issue #3 duplicate

ZeroDivisionError: float division by zero

Michael Samoylov
created an issue

It happens on the fresh project (no own apps)

{{{ $ ./manage.py test Creating test database 'default'... Creating table auth_permission Creating table auth_group_permissions Creating table auth_group Creating table auth_user_user_permissions Creating table auth_user_groups Creating table auth_user Creating table auth_message Creating table django_content_type Creating table django_session Creating table django_site Creating table django_admin_log Installing index for auth.Permission model Installing index for auth.Group_permissions model Installing index for auth.User_user_permissions model Installing index for auth.User_groups model Installing index for auth.Message model Installing index for admin.LogEntry model No fixtures found. ................................................................................................................................................................................


Ran 176 tests in 3.799s

OK Destroying test database 'default'... Coverage.py warning: No data was collected. Traceback (most recent call last): File "./manage.py", line 11, in <module> execute_manager(settings) File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django/core/management/init.py", line 438, in execute_manager utility.execute() File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django/core/management/init.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv self.execute(args, options.dict) File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute output = self.handle(*args, options) File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django/core/management/commands/test.py", line 37, in handle failures = test_runner.run_tests(test_labels) File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django_coverage/coverage_runner.py", line 113, in run_tests html_report(outdir, modules, excludes, errors) File "/Users/mike/Envs/djangoware/lib/python2.7/site-packages/django_coverage/utils/coverage_report/html_report.py", line 105, in html_report overall_covered = float(total_executed)/total_stmts100 ZeroDivisionError: float division by zero }}}

Comments (1)

  1. Log in to comment