make sure no errors are printed

This commit is contained in:
Alan Hamlett 2016-07-06 17:31:24 +02:00
parent cf1711ca08
commit 1f4eb421db

View file

@ -8,6 +8,7 @@ from wakatime.packages.requests.models import Response
import logging
import os
import shutil
import sys
import tempfile
import time
from testfixtures import log_capture
@ -345,6 +346,9 @@ class LanguagesTestCase(utils.TestCase):
execute(args)
self.assertEquals(sys.stdout.getvalue(), '')
self.assertEquals(sys.stderr.getvalue(), '')
output = [u(' ').join(x) for x in logs.actual()]
expected = u('WakaTime WARNING Regex error (unexpected end of regular expression) for projectmap pattern: invalid[({regex')
if self.isPy35: