[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Stop using "as" as an indentifier; it breaks newer pyth...



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria:/tmp/cvs-serv32497/lib/mixminion

Modified Files:
	test.py 
Log Message:
Stop using "as" as an indentifier; it breaks newer pythons.

Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.221
retrieving revision 1.222
diff -u -d -r1.221 -r1.222
--- test.py	31 Dec 2007 20:11:54 -0000	1.221
+++ test.py	17 Feb 2009 19:49:24 -0000	1.222
@@ -3444,15 +3444,15 @@
         h3 = q.queueDeliveryMessage("Message number three", A1, start)
         q._repOK()
 
-        m, ds, as = q._inspect(h1)
+        m, ds, as_ = q._inspect(h1)
         self.assertEquals(m, "Message number one")
         self.assertEquals(ds.address, A1)
-        self.assertEquals(as.address, A1)
+        self.assertEquals(as_.address, A1)
         self.assert_(not ds.isPending())
         self.assertEquals(ds.lastAttempt, None)
-        self.assertEquals(as.lastSuccess, None)
-        self.assertEquals(as.lastFailure, None)
-        self.assertEquals(as.firstFailure, None)
+        self.assertEquals(as_.lastSuccess, None)
+        self.assertEquals(as_.lastFailure, None)
+        self.assertEquals(as_.firstFailure, None)
         q.removeExpiredMessages(start)
         self.assertEquals(q.store.count(), 3)