From 8b1fb8d8676e832d02b99bb8e69f6897dd10c0f6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 3 Sep 2024 09:37:50 +0200 Subject: Merging upstream version 25.18.0. Signed-off-by: Daniel Baumann --- tests/test_generator.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/test_generator.py') 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) -- cgit v1.2.3