summaryrefslogtreecommitdiffstats
path: root/tests/test_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_generator.py')
-rw-r--r--tests/test_generator.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_generator.py b/tests/test_generator.py
index e21aa25..7609831 100644
--- a/tests/test_generator.py
+++ b/tests/test_generator.py
@@ -1,4 +1,3 @@
-import time
import unittest
from sqlglot import exp, parse_one
@@ -46,8 +45,5 @@ class TestGenerator(unittest.TestCase):
assert parse_one("X as 1").sql(identify="safe") == 'X AS "1"'
def test_generate_nested_binary(self):
- sql = "SELECT 'foo'" + (" || 'foo'" * 500)
-
- now = time.time()
- self.assertEqual(parse_one(sql).sql(), sql)
- self.assertLessEqual(time.time() - now, 0.1)
+ sql = "SELECT 'foo'" + (" || 'foo'" * 1000)
+ self.assertEqual(parse_one(sql).sql(copy=False), sql)