Blob Blame History Raw
--- blessed-1.16.1.orig/blessed/tests/test_core.py	2019-09-22 21:26:02.000000000 -0400
+++ blessed-1.16.1/blessed/tests/test_core.py	2019-10-27 21:56:44.956621958 -0400
@@ -259,12 +259,13 @@
     import blessed.keyboard
 
     if hasattr(collections, 'OrderedDict'):
-        monkeypatch.delattr('collections.OrderedDict')
+        monkeypatch.delattr(collections, 'OrderedDict')
 
     try:
         reload_module(blessed.keyboard)
     except ImportError as err:
         assert err.args[0] in ("No module named ordereddict",  # py2
+                               "cannot import name OrderedDict",  #p26
                                "No module named 'ordereddict'")  # py3
         sys.modules['ordereddict'] = mock.Mock()
         sys.modules['ordereddict'].OrderedDict = -1
@@ -281,7 +282,7 @@
     "Test python version 3.0 through 3.2 raises an exception."
     import blessed
 
-    monkeypatch.setattr('platform.python_version_tuple',
+    monkeypatch.setattr(platform, 'python_version_tuple',
                         lambda: ('3', '2', '2'))
 
     try: