Skip to content

Commit

Permalink
skip the timing assert on python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Mar 29, 2019
1 parent 475bbd2 commit 0682cf9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/integration/042_sources_test/test_sources.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import unittest
from datetime import datetime, timedelta
import json
import os

import multiprocessing
from base64 import standard_b64encode as b64
import requests
import os
import socket
import threading
import sys
import time
import unittest
from base64 import standard_b64encode as b64
from datetime import datetime, timedelta

import requests

from dbt.exceptions import CompilationException
from test.integration.base import DBTIntegrationTest, use_profile, AnyFloat, \
Expand Down Expand Up @@ -738,8 +737,9 @@ def kill_and_assert(self, pg_sleeper, task_id, request_id):
self.assertEqual(error_data['message'], 'RPC process killed by signal 2')
self.assertIn('logs', error_data)
# it should take less than 5s to kill the process if things are working
# properly
self.assertLess(result_time, kill_time + 5)
# properly. On python 2.x, things do not work properly.
if sys.version_info.major > 2:
self.assertLess(result_time, kill_time + 5)
return error_data

def _get_sleep_query(self):
Expand Down

0 comments on commit 0682cf9

Please sign in to comment.