Skip to content

Commit

Permalink
Merge pull request #7 from hhtong/ci
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
Heidi Tong authored Dec 29, 2020
2 parents d11e449 + 3d6d1df commit 7070bda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_nurse_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import os
import subprocess
import unittest
import sys

example_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Expand All @@ -23,7 +24,7 @@ class TestSmoke(unittest.TestCase):
def test_smoke(self):
file_path = os.path.join(example_dir, 'nurse_scheduling.py')

value = subprocess.check_output(["python", file_path])
value = subprocess.check_output([sys.executable, file_path])

# Check the expected energy
energy = 0.6
Expand Down

0 comments on commit 7070bda

Please sign in to comment.