nixpkgs/pkgs/development
Martin Weinelt 7644480555
python3Packages.snitun: disable failing test on darwin (#119009)
The upstream advertises this package as "OS independent", but from
issues it is clear they cannot test it on MacOS. So we simply disable
this test.

```
______________________ test_peer_listener_timeout[pyloop] ______________________

raise_timeout = None
peer_manager = <snitun.server.peer_manager.PeerManager object at 0x10a4a6df0>
peer_listener = <snitun.server.listener_peer.PeerListener object at 0x10a4a6a30>
test_client_peer = Client(reader=<StreamReader exception=ConnectionResetError(54, 'Connection reset by peer') transport=<_SelectorSocketT...by peer') transport=<_SelectorSocketTransport closed fd=19>>>, close=<asyncio.locks.Event object at 0x10909ee50 [set]>)

    async def test_peer_listener_timeout(
        raise_timeout, peer_manager, peer_listener, test_client_peer
    ):
        """Run a full flow of with a peer."""
        valid = datetime.utcnow() + timedelta(days=1)
        aes_key = os.urandom(32)
        aes_iv = os.urandom(16)
        hostname = "localhost"
        fernet_token = create_peer_config(valid.timestamp(), hostname, aes_key, aes_iv)

        crypto = CryptoTransport(aes_key, aes_iv)

        test_client_peer.writer.write(fernet_token)
        await test_client_peer.writer.drain()

        with pytest.raises(asyncio.IncompleteReadError):
>           token = await test_client_peer.reader.readexactly(32)

tests/server/test_listener_peer.py:110:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/dpa7p7v00xvr26dv2myh3k5p1zkagqsm-python3-3.8.5/lib/python3.8/asyncio/streams.py:723: in readexactly
    await self._wait_for_data('readexactly')
/nix/store/dpa7p7v00xvr26dv2myh3k5p1zkagqsm-python3-3.8.5/lib/python3.8/asyncio/streams.py:517: in _wait_for_data
    await self._waiter
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <_SelectorSocketTransport closed fd=19>

    def _read_ready__data_received(self):
        if self._conn_lost:
            return
        try:
>           data = self._sock.recv(self.max_size)
E           ConnectionResetError: [Errno 54] Connection reset by peer
```
2021-04-11 02:18:59 -04:00
..
androidndk-pkgs
arduino
beam-modules beam-modules: buildMix -> mixRelease 2021-04-08 20:54:48 +09:00
bower-modules/generic
chez-modules
compilers ciao: 1.19.0 -> 1.20.0 2021-04-10 06:44:18 +00:00
coq-modules coqtail-math: init at 20201124 2021-04-09 10:05:32 +02:00
dhall-modules
dotnet-modules
em-modules/generic
gnuradio-modules
go-modules
go-packages
guile-modules
haskell-modules hackage2nix: keep the old version of refinery around for haskell-language-server 2021-04-09 20:31:28 +02:00
idris-modules
interpreters Merge master into staging-next 2021-04-08 12:06:16 +00:00
java-modules
libraries Merge pull request #118967 from veprbl/pr/rivet_3_1_4 2021-04-11 00:29:33 -04:00
lisp-modules
lua-modules
misc qmk_firmware: drop 2021-04-02 15:51:51 +02:00
mobile
node-packages nodePackages_(gatsby-cli: init at 3.2.0, fleek-cli: init at 0.0.1) 2021-04-06 19:39:18 +00:00
ocaml-modules ocamlPackages.mirage-crypto*: 0.9.1 -> 0.9.2 2021-04-09 14:23:12 +02:00
octave-modules
perl-modules perlPackages.NetCIDRLite: 0.21 -> 0.22 2021-04-05 18:02:52 +02:00
pharo
php-packages
pure-modules
python-modules python3Packages.snitun: disable failing test on darwin (#119009) 2021-04-11 02:18:59 -04:00
r-modules lzma: deprecate alias 2021-04-04 19:49:52 +02:00
ruby-modules Merge master into staging-next 2021-04-08 18:14:17 +00:00
tools Merge pull request #119065 from r-ryantm/auto-update/openfpgaloader 2021-04-10 21:42:52 -07:00
web nodejs: 15.13.0 -> 15.14.0 2021-04-07 20:45:34 +09:00