From be200e712b5514387ee578e886ec36ae640800e1 Mon Sep 17 00:00:00 2001 From: Gabi Davar Date: Wed, 24 Aug 2016 09:08:20 +0300 Subject: skip test on windows - no SIGALRM. --- tests/test_packetizer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_packetizer.py b/tests/test_packetizer.py index 8faec03c..5fa54e4a 100644 --- a/tests/test_packetizer.py +++ b/tests/test_packetizer.py @@ -20,6 +20,7 @@ Some unit tests for the ssh2 protocol in Transport. """ +import sys import unittest from hashlib import sha1 @@ -33,7 +34,6 @@ from paramiko.common import byte_chr, zero_byte x55 = byte_chr(0x55) x1f = byte_chr(0x1f) - class PacketizerTest (unittest.TestCase): def test_1_write(self): @@ -75,6 +75,7 @@ class PacketizerTest (unittest.TestCase): self.assertEqual(1, m.get_int()) self.assertEqual(900, m.get_int()) + @unittest.skipIf(sys.platform.startswith("win"), 'no SIGALRM on windows') def test_3_closed(self): rsock = LoopSocket() wsock = LoopSocket() -- cgit v1.2.3 From 1a03c7df54611500b2e91fa7eee7a8b74b62c737 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 5 Dec 2016 20:10:01 -0800 Subject: Changelog re #801 --- sites/www/changelog.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sites/www/changelog.rst b/sites/www/changelog.rst index e44998c3..d2cb7ac7 100644 --- a/sites/www/changelog.rst +++ b/sites/www/changelog.rst @@ -2,6 +2,8 @@ Changelog ========= +* :support:`801 (1.17+)` Skip a Unix-only test when on Windows; thanks to + Gabi Davar. * :support:`792 (1.17+)` Minor updates to the README and demos; thanks to Alan Yee. * :bug:`789` Add a missing ``.closed`` attribute (plus ``._closed`` because -- cgit v1.2.3