Changeset 10518 for trunk/test

Show
Ignore:
Timestamp:
10/11/08 12:22:04 (6 weeks ago)
Author:
asterix
Message:

[thorstenp] rename some var to not hide builts-in functions (list -> list_, ...)

Location:
trunk/test
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/lib/mocks.py

    r10320 r10518  
    123123 
    124124class MockSession(Mock): 
    125         def __init__(self, conn, jid, thread_id, type): 
     125        def __init__(self, conn, jid, thread_id, type_): 
    126126                Mock.__init__(self) 
    127127 
    128128                self.conn = conn 
    129129                self.jid = jid 
    130                 self.type = type 
     130                self.type = type_ 
    131131                self.thread_id = thread_id 
    132132 
  • trunk/test/test_misc_interface.py

    r10318 r10518  
    1616 
    1717        def test_links_regexp_entire(self): 
    18                 def assert_matches_all(str): 
    19                         m = gajim.interface.basic_pattern_re.match(str) 
     18                def assert_matches_all(str_): 
     19                        m = gajim.interface.basic_pattern_re.match(str_) 
    2020 
    2121                        # the match should equal the string 
    22                         str_span = (0, len(str)) 
     22                        str_span = (0, len(str_)) 
    2323                        self.assertEqual(m.span(), str_span) 
    2424