ashb commented on a change in pull request #21210:
URL: https://github.com/apache/airflow/pull/21210#discussion_r799356428



##########
File path: tests/models/__init__.py
##########
@@ -16,9 +16,9 @@
 # specific language governing permissions and limitations
 # under the License.
 
-import os
+import pathlib
 
 from airflow.utils import timezone
 
 DEFAULT_DATE = timezone.datetime(2016, 1, 1)
-TEST_DAGS_FOLDER = 
os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), 
'..', 'dags'))
+TEST_DAGS_FOLDER = pathlib.Path(__file__).parent.parent / 'dags'

Review comment:
       Why's that?




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to