File: test_truncating.py

package info (click to toggle)
python-better-exceptions 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 632 kB
  • sloc: python: 620; sh: 108; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 179 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding:utf-8 -*-

import better_exceptions
better_exceptions.hook()
better_exceptions.MAX_LENGTH = 10

def div():
    var = "9" * 150
    return 1 / var


div()