use correct regex warning message for py35
This commit is contained in:
parent
45855f6998
commit
83063e845a
1 changed files with 4 additions and 4 deletions
|
@ -51,11 +51,11 @@ class LoggingTestCase(utils.TestCase):
|
|||
output = [u(' ').join(x) for x in logs.actual()]
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for include pattern: \\(invalid regex)')
|
||||
if self.isPy35:
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for include pattern: \\(invalid regex)')
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis at position 15) for include pattern: \\(invalid regex)')
|
||||
self.assertEquals(output[0], expected)
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for exclude pattern: \\(invalid regex)')
|
||||
if self.isPy35:
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for exclude pattern: \\(invalid regex)')
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis at position 15) for exclude pattern: \\(invalid regex)')
|
||||
self.assertEquals(output[1], expected)
|
||||
|
||||
@log_capture()
|
||||
|
@ -108,11 +108,11 @@ class LoggingTestCase(utils.TestCase):
|
|||
output = [u(' ').join(x) for x in logs.actual()]
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for include pattern: \\(invalid regex)')
|
||||
if self.isPy35:
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for include pattern: \\(invalid regex)')
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis at position 15) for include pattern: \\(invalid regex)')
|
||||
self.assertEquals(output[0], expected)
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for exclude pattern: \\(invalid regex)')
|
||||
if self.isPy35:
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis) for exclude pattern: \\(invalid regex)')
|
||||
expected = u('WakaTime WARNING Regex error (unbalanced parenthesis at position 15) for exclude pattern: \\(invalid regex)')
|
||||
self.assertEquals(output[1], expected)
|
||||
self.assertEquals(output[2], u('WakaTime DEBUG Sending heartbeat to api at https://wakatime.com/api/v1/heartbeats'))
|
||||
self.assertIn('Python', output[3])
|
||||
|
|
Loading…
Reference in a new issue