Rev 5814: (jelmer) Allow realname to be empty in tests. (Jelmer Vernooij) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Fri Apr 29 11:07:19 UTC 2011


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5814 [merge]
revision-id: pqm at pqm.ubuntu.com-20110429110714-wr9f71ea9600lvb6
parent: pqm at pqm.ubuntu.com-20110428154317-2c50aikmc92jci4c
parent: jelmer at samba.org-20110428235853-3ljg929ug5yvzjrq
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2011-04-29 11:07:14 +0000
message:
  (jelmer) Allow realname to be empty in tests. (Jelmer Vernooij)
modified:
  bzrlib/tests/test_config.py    testconfig.py-20051011041908-742d0c15d8d8c8eb
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py	2011-04-15 23:42:57 +0000
+++ b/bzrlib/tests/test_config.py	2011-04-28 23:58:53 +0000
@@ -2483,8 +2483,8 @@
             raise TestSkipped("User name inference not implemented on win32")
         realname, address = config._auto_user_id()
         if os.path.exists('/etc/mailname'):
-            self.assertTrue(realname)
-            self.assertTrue(address)
+            self.assertIsNot(None, realname)
+            self.assertIsNot(None, address)
         else:
             self.assertEquals((None, None), (realname, address))
 




More information about the bazaar-commits mailing list