Ticket #5897: test_runtime.py.diff

File test_runtime.py.diff, 515 bytes (added by meissenPlate, 4 years ago)

A test that should fail if the unmodified twisted.python.runtime were to be run under 3x. (Since trial itself doesn't run under 3x I can only say that it passes under 2x trial.)

  • .py

    old new  
    6565
    6666
    6767
     68    def test_isWinNT(self):
     69        """
     70        L{Platform.isWinNT}'s return value depends on the running system, but
     71        it should not raise an exception in any case.
     72        """
     73        platform = Platform()
     74        _ = platform.isWinNT()
     75
     76
     77
    6878class ForeignPlatformTests(TestCase):
    6979    """
    7080    Tests for L{Platform} based overridden initializer values.