~ubuntu-branches/ubuntu/saucy/pyflakes/saucy

« back to all changes in this revision

Viewing changes to pyflakes/test/test_other.py

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-08-04 23:49:01 UTC
  • mfrom: (1.1.9) (3.3.2 sid)
  • Revision ID: package-import@ubuntu.com-20130804234901-0sf9rh5q216p1zfo
Tags: 0.7.3-1
* Switch to dh-python.
* New upstream release (Closes: #718728)
  - "Fix undefined name for generator expression and dict/set
  comprehension at class level"
  - drop all patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
"""
4
4
 
5
5
from sys import version_info
6
 
from unittest import skip, skipIf
7
6
 
8
7
from pyflakes import messages as m
9
 
from pyflakes.test import harness
10
 
 
11
 
 
12
 
class Test(harness.Test):
 
8
from pyflakes.test.harness import TestCase, skip, skipIf
 
9
 
 
10
 
 
11
class Test(TestCase):
13
12
 
14
13
    def test_duplicateArgs(self):
15
14
        self.flakes('def fu(bar, bar): pass', m.DuplicateArgument)
466
465
        ''')
467
466
 
468
467
 
469
 
class TestUnusedAssignment(harness.Test):
 
468
class TestUnusedAssignment(TestCase):
470
469
    """
471
470
    Tests for warning about unused assignments.
472
471
    """