A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

25 wiersze
585 B

  1. # -*- coding: utf-8 -*-
  2. """
  3. Discover tests using ``unittest2` for Python 2.6.
  4. It appears the default distutils test suite doesn't play nice with
  5. ``setUpClass`` thereby making some tests fail. Using ``unittest2`` to load
  6. tests seems to work around that issue.
  7. http://stackoverflow.com/a/17004409/753501
  8. """
  9. import os.path
  10. from mwparserfromhell.compat import py26
  11. if py26:
  12. import unittest2 as unittest
  13. else:
  14. import unittest
  15. def additional_tests():
  16. project_root = os.path.split(os.path.dirname(__file__))[0]
  17. return unittest.defaultTestLoader.discover(project_root)