Commits

Jason R. Coombs  committed 2fcdf67

Fixed failing tests in irc.client on Python 3.3

  • Participants
  • Parent commits 2337562

Comments (0)

Files changed (1)

     >>> d = IRCDict({'[This]': 'that'}, A='foo')
 
     The dict maintains the original case:
-    >>> d.keys()
-    [u'A', u'[This]']
+    >>> '[This]' in ''.join(d.keys())
+    True
 
     But the keys can be referenced with a different case
-    >>> d['a']
-    u'foo'
+    >>> d['a'] == 'foo'
+    True
 
-    >>> d['{this}']
-    u'that'
+    >>> d['{this}'] == 'that'
+    True
 
-    >>> d['{THIS}']
-    u'that'
+    >>> d['{THIS}'] == 'that'
+    True
 
     >>> '{thiS]' in d
     True
 
     This should work for operations like delete and pop as well.
-    >>> d.pop('A')
-    u'foo'
+    >>> d.pop('A') == 'foo'
+    True
     >>> del d['{This}']
     >>> len(d)
     0