<s> import os . path <EOL> import platform <EOL> from nose2 . compat import unittest <EOL> from nose2 . tests . _common import FunctionalTestCase <EOL> class TestCoverage ( FunctionalTestCase ) : <EOL> @ unittest . skipIf ( <EOL> platform . python_version_tuple ( ) [ : <NUM_LIT:2> ] == ( '<STR_LIT:3>' , '<STR_LIT:2>' ) , <EOL> '<STR_LIT>' ) <EOL> def test_run ( self ) : <EOL> proc = self . runIn ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ) <EOL> STATS = '<STR_LIT>' <EOL> expected = os . path . join ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> expected = expected . replace ( '<STR_LIT:\\>' , r'<STR_LIT:\\>' ) <EOL> expected = expected + STATS <EOL> stdout , stderr = proc . communicate ( ) <EOL> self . assertTestRunOutputMatches ( <EOL> proc , <EOL> stderr = expected ) <EOL> self . assertTestRunOutputMatches ( <EOL> proc , <EOL> stderr = '<STR_LIT>' + STATS ) </s>
