Skip to content
Permalink
Browse files

Test invariance with Python 3.5

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 26, 2015
1 parent 5e5bdfd commit d84804270c7e8ce6ab6dec3ac1a1a28b66586e73
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_integration.py
@@ -528,8 +528,8 @@ def fill_site(self):
os.system('rm "{0}/stories/creating-a-theme.rst" "{0}/stories/extending.txt" "{0}/stories/internals.txt" "{0}/stories/manual.rst" "{0}/stories/social_buttons.txt" "{0}/stories/theming.rst" "{0}/stories/path_handlers.txt"'.format(self.target_dir))
def test_invariance(self):
"""Compare the output to the canonical output."""
if sys.version_info[0:2] != (2, 7):
pytest.skip('only python 2.7 is supported right now')
if sys.version_info[0:2] != (3, 5):
pytest.skip('only python 3.5 is supported for invariance')
good_path = os.path.join(os.path.dirname(__file__), 'data', 'baseline{0[0]}.{0[1]}'.format(sys.version_info))
if not os.path.exists(good_path):
pytest.skip('no baseline found')

0 comments on commit d848042

Please sign in to comment.
You can’t perform that action at this time.