You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/08/21 16:25:02 UTC

[GitHub] [airflow] houqp commented on a change in pull request #5857: [AIRFLOW-5251] add missing typing-extensions dep for py37

houqp commented on a change in pull request #5857: [AIRFLOW-5251] add missing typing-extensions dep for py37
URL: https://github.com/apache/airflow/pull/5857#discussion_r316280138
 
 

 ##########
 File path: tests/utils/test_helpers.py
 ##########
 @@ -213,7 +214,10 @@ def test_is_in(self):
         # python caches small integers, so i is 3 will be True,
         # but `big_i is 2 ** 31` is False.
         self.assertTrue(helpers.is_in(big_i, test_container))
-        self.assertFalse(helpers.is_in(2 ** 31, test_container))
+        if sys.version_info.minor < 7:
+            self.assertFalse(helpers.is_in(2 ** 31, test_container))
+        else:
+            self.assertTrue(helpers.is_in(2 ** 31, test_container))
 
 Review comment:
   Yes, the big int caching behavior is changed in py 3.7. multiple creation of `2**31`s in this test is now returning the same reference id.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services