Skip to content

Commit

Permalink
app, ipython#319: Skip TCs with redirect_stdout in py<3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Sep 21, 2016
1 parent 0448f35 commit 11f0049
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions traitlets/config/tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import json
import logging
import os
import sys
from io import StringIO
from unittest import TestCase

Expand Down Expand Up @@ -205,6 +206,8 @@ def test_flags(self):
app.init_bar()
self.assertEqual(app.bar.enabled, True)

@mark.skipif(sys.version_info < (3, 4),
reason="Missing `contextlib.redirect_stdout` in python < 3.4!")
def test_flags_help(self):
app = MyApp()
stdout = io.StringIO()
Expand Down

0 comments on commit 11f0049

Please sign in to comment.