~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-04-29 11:07:14 UTC
  • mfrom: (5813.1.1 realname-can-be-empty)
  • Revision ID: pqm@pqm.ubuntu.com-20110429110714-wr9f71ea9600lvb6
(jelmer) Allow realname to be empty in tests. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2483
2483
            raise TestSkipped("User name inference not implemented on win32")
2484
2484
        realname, address = config._auto_user_id()
2485
2485
        if os.path.exists('/etc/mailname'):
2486
 
            self.assertTrue(realname)
2487
 
            self.assertTrue(address)
 
2486
            self.assertIsNot(None, realname)
 
2487
            self.assertIsNot(None, address)
2488
2488
        else:
2489
2489
            self.assertEquals((None, None), (realname, address))
2490
2490