Advertisement
Guest User

Untitled

a guest
Jul 8th, 2010
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. [bzrlib]% bzr cdiff
  2. === modified file 'bzrlib/tests/test_osutils.py'
  3. --- bzrlib/tests/test_osutils.py 2010-07-08 05:28:17 +0000
  4. +++ bzrlib/tests/test_osutils.py 2010-07-08 08:51:00 +0000
  5. @@ -27,6 +27,7 @@
  6.  
  7. from bzrlib import (
  8. errors,
  9. + lazy_regex,
  10. osutils,
  11. symbol_versioning,
  12. tests,
  13. @@ -1717,6 +1718,10 @@
  14.  
  15. def test_re_compile_checked_error(self):
  16. # like https://bugs.launchpad.net/bzr/+bug/251352
  17. +
  18. + # Due to possible test isolation error, re.compile is not lazy at
  19. + # this point. We re-install lazy compile.
  20. + lazy_regex.install_lazy_compile()
  21. err = self.assertRaises(
  22. errors.BzrCommandError,
  23. self._deprecated_re_compile_checked, '*', re.IGNORECASE, 'test case')
  24.  
  25. [bzrlib]%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement