/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_errors.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-31 03:49:52 UTC
  • mfrom: (7078.5.1 python3-remaining-warnings)
  • Revision ID: breezy.the.bot@gmail.com-20180831034952-1g3jzg4f3bvrnw9f
Fix remaining warnings when running testsuite on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-remaining-warnings/+merge/353750

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
            init = getattr(c, '__init__', None)
50
50
            fmt = getattr(c, '_fmt', None)
51
51
            if init:
52
 
                args = inspect.getargspec(init)[0]
 
52
                if PY3:
 
53
                    args = inspect.getfullargspec(init)[0]
 
54
                else:
 
55
                    args = inspect.getargspec(init)[0]
53
56
                self.assertFalse('message' in args,
54
57
                    ('Argument name "message" not allowed for '
55
58
                    '"errors.%s.__init__"' % c.__name__))