Skip to content

Commit 630c8f2

Browse files
committed
Test "file already built" branch
1 parent cfdd2b6 commit 630c8f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_unasync.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def test_build_py_modules(tmpdir):
7272
env = copy.copy(os.environ)
7373
env["PYTHONPATH"] = os.path.realpath(os.path.join(TEST_DIR, ".."))
7474
subprocess.check_call(["python", "setup.py", "build"], cwd=mod_dir, env=env)
75+
# Calling it twice to test the "if not copied" branch
76+
subprocess.check_call(["python", "setup.py", "build"], cwd=mod_dir, env=env)
7577

7678
unasynced = os.path.join(mod_dir, "build/lib/_sync/some_file.py")
7779
tree_build_dir = list_files(mod_dir)

0 commit comments

Comments
 (0)