Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: test_package.py, Failing on Windows systems #794

Merged
merged 1 commit into from
May 12, 2023

Conversation

Magnus167
Copy link
Member

@Magnus167 Magnus167 commented May 12, 2023

Fails on a Windows system where the user may have a space such as C:/User Name/script.py

@Magnus167 Magnus167 changed the title Bugfix: test_package.py, Fails on Windows systems with spaces in path Bugfix: test_package.py, Failing on Windows systems May 12, 2023
@codecov
Copy link

codecov bot commented May 12, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (3d513ee) 71.30% compared to head (d5d5d80) 71.30%.

❗ Current head d5d5d80 differs from pull request most recent head 07c96e7. Consider uploading reports for the commit 07c96e7 to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #794   +/-   ##
========================================
  Coverage    71.30%   71.30%           
========================================
  Files           31       31           
  Lines         3666     3666           
========================================
  Hits          2614     2614           
  Misses        1052     1052           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -9,15 +9,15 @@ def test_lazy_imports(self):
cmd = ("import macrosynergy as msy; "
"import sys; ")

cmd = sys.executable + ' -c "' + cmd + '"'
cmd = f'"{sys.executable}" -c "' + cmd + '"'
p = subprocess.Popen(cmd, shell=True, close_fds=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not run it as:

p = subprocess.Popen([sys.executable, "-c", cmd], shell=True, close_fds=True)

@Magnus167 Magnus167 merged commit bbf67c0 into develop May 12, 2023
6 checks passed
@Magnus167 Magnus167 deleted the bugfix/package_imports_tests branch May 12, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants