Skip to content

Commit d0f02ad

Browse files
committed
Simplify import
1 parent 1343eba commit d0f02ad

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

pr-checks/test_sync_back.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@
55

66
import os
77
import shutil
8-
import sys
98
import tempfile
109
import unittest
1110

12-
# Add the current directory to sys.path and import the sync_back module
13-
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
14-
15-
# Import the sync-back module
16-
import importlib.util
17-
spec = importlib.util.spec_from_file_location("sync_back", os.path.join(os.path.dirname(__file__), "sync_back.py"))
18-
sync_back = importlib.util.module_from_spec(spec)
19-
spec.loader.exec_module(sync_back)
11+
import sync_back
2012

2113

2214
class TestSyncBack(unittest.TestCase):

0 commit comments

Comments
 (0)