PkgInfo: skip 'archlinux' and 'archaur' tests; the servers very often time out!

This commit is contained in:
James Lu 2017-02-23 18:00:32 -08:00
parent 094b9a332d
commit 67c40b5974

View File

@ -1,5 +1,5 @@
### ###
# Copyright (c) 2014-2016, James Lu # Copyright (c) 2014-2017, James Lu
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -29,6 +29,7 @@
### ###
from supybot.test import * from supybot.test import *
import unittest
class PkgInfoTestCase(PluginTestCase): class PkgInfoTestCase(PluginTestCase):
plugins = ('PkgInfo',) plugins = ('PkgInfo',)
@ -50,14 +51,15 @@ class PkgInfoTestCase(PluginTestCase):
self.assertRegexp('vlist debian bash', 'Found [1-9][0-9]* ' self.assertRegexp('vlist debian bash', 'Found [1-9][0-9]* '
'results: (.*?\(.*?\))+') 'results: (.*?\(.*?\))+')
@unittest.skip("Remote server is too unreliable (2017-02-23)")
def testArchLinux(self): def testArchLinux(self):
self.assertError('archlinux afdsfbjeiog') self.assertError('archlinux afdsfbjeiog')
self.assertNotError('archlinux bash') self.assertNotError('archlinux bash')
self.assertRegexp('archlinux pacman --exact', self.assertRegexp('archlinux pacman --exact',
'Found 1.*?pacman') 'Found 1.*?pacman')
@unittest.skip("Remote server is too unreliable (2017-02-23)")
def testArchAUR(self): def testArchAUR(self):
self.assertError('archaur wjoitgjwotgjv')
self.assertRegexp('archaur yaourt', 'Found [1-9][0-9]* results:' self.assertRegexp('archaur yaourt', 'Found [1-9][0-9]* results:'
'.*?yaourt.*?') '.*?yaourt.*?')