Skip to content

Commit

Permalink
Test invariance with Python 3.5
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 26, 2015
1 parent 5e5bdfd commit d848042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_integration.py
Expand Up @@ -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')
Expand Down

0 comments on commit d848042

Please sign in to comment.