~ubuntu-branches/ubuntu/trusty/pylint/trusty

« back to all changes in this revision

Viewing changes to test/input/func_exceptions_raise_type_error.py

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Thénault
  • Date: 2006-09-25 16:46:40 UTC
  • mfrom: (1.2.1 upstream) (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20060925164640-obkb6g34gqtyk20n
new uptream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
'E0702': Raising an %s while only classes, instances or string are allowed
 
3
 
 
4
Used when something which is neither a class, an instance or a string is
 
5
raised (i.e. a `TypeError` will be raised).
 
6
"""
 
7
 
 
8
__revision__ = 1
 
9
 
 
10
if __revision__:
 
11
    raise 1
 
12
 
 
13
if __revision__:
 
14
    raise None