Skip to content

Commit 16ca873

Browse files
authored
Update test_instrumentation.py
1 parent 8011298 commit 16ca873

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

time_complexity_analyzer/analyzer/test_instrumentation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def tearDown(self):
2929
if os.path.exists(self.output_python_path):
3030
os.remove(self.output_python_path)
3131

32-
@pytest.mark.file_creation
32+
@pytest.mark.skipif("CI" in os.environ, reason="Skipping in CI environment")
3333
def test_java_instrumentation(self):
3434
user_function = """
3535
public int sumArray(int[] arr) {
@@ -55,7 +55,7 @@ def test_java_instrumentation(self):
5555

5656
run_java_program()
5757

58-
@pytest.mark.file_creation
58+
@pytest.mark.skipif("CI" in os.environ, reason="Skipping in CI environment")
5959
def test_cpp_instrumentation(self):
6060
user_function = """
6161
void sumArray(std::vector<int>& arr) {
@@ -74,7 +74,7 @@ def test_cpp_instrumentation(self):
7474

7575
run_cpp_program()
7676

77-
@pytest.mark.file_creation
77+
@pytest.mark.skipif("CI" in os.environ, reason="Skipping in CI environment")
7878
def test_python_instrumentation(self):
7979
user_code = """
8080
def sum_array(arr):
@@ -86,4 +86,4 @@ def sum_array(arr):
8686
run_instrumented_python_code(user_code, number_of_inputs=50, size_array=50)
8787

8888
self.assertTrue(os.path.exists(self.output_python_path))
89-
print(self.output_python_path)
89+
print(self.output_python_path)

0 commit comments

Comments
 (0)