Skip to content

Commit

Permalink
Fix tests on Python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Aug 6, 2018
1 parent b74fe34 commit 8252632
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/zope/app/apidoc/codemodule/tests.py
Expand Up @@ -113,10 +113,12 @@ def test_module_with_file_of_none(self):
class Mod(object):
__file__ = None
__name__ = 'name'
Mod.__doc__ = "A module"

mod = Module(None, 'name', Mod())
self.assertEqual(Mod.__doc__, mod.getDocString())
mod = Mod()
mod.__doc__ = 'A module'

inst = Module(None, 'name', mod)
self.assertEqual(mod.__doc__, inst.getDocString())


class TestZCML(unittest.TestCase):
Expand Down

0 comments on commit 8252632

Please sign in to comment.