Parcourir la source

try to fix last ci failure

Eric Charles il y a 5 ans
Parent
commit
338b43d0ca
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      examples/test_examples.py

+ 4 - 2
examples/test_examples.py

@@ -46,13 +46,15 @@ def main():
             with tempfile.TemporaryDirectory() as cwd:
                 header(path)
                 runner = osp.join(path, 'main.py')
-                subprocess.check_call([sys.executable, runner], cwd=cwd)
+                # TODO(@echarles) cwd should not be path
+                subprocess.check_call([sys.executable, runner], cwd=path)
                 count += 1
         elif osp.exists(osp.join(path, 'main.py')):
             with tempfile.TemporaryDirectory() as cwd:
                 header(path)
                 runner = osp.join(here, 'example_check.py')
-                subprocess.check_call([sys.executable, runner, path], cwd=cwd)
+                # TODO(@echarles) cwd should not be path
+                subprocess.check_call([sys.executable, runner, path], cwd=path)
                 count += 1
 
     print('\n\n%s tests complete!' % count)