~duplicity-team/duplicity/0.8-series

« back to all changes in this revision

Viewing changes to testing/unit/test_tempdir.py

* Merged in lp:~kenneth-loafman/duplicity/duplicity-pylint
  - Enable additional pylint warnings. Make 1st pass at correction.
      unused-argument,
      unused-wildcard-import,
      redefined-builtin,
      bad-indentation,
      mixed-indentation,
     unreachable
  - Renamed globals to config to fix conflict with __builtin__.glogals()
  - Resolved conflict between duplicity.config and testing.manual.config
  - Normalized emacs mode line to have encoding:utf8 on all *.py files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
 
1
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4; encoding:utf8 -*-
2
2
#
3
3
# Copyright 2002 Ben Escoto <ben@emerose.org>
4
4
# Copyright 2007 Kenneth Loafman <kenneth@loafman.com>
39
39
        self.assertTrue(td.mktemp() != td.mktemp())
40
40
 
41
41
        # create and remove a temp dir
42
 
        dir = td.mktemp()
 
42
        dir = td.mktemp()  # pylint: disable=redefined-builtin
43
43
        os.mkdir(dir)
44
44
        os.rmdir(dir)
45
45