File: test_exercise_2.py

package info (click to toggle)
python-memray 1.17.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,396 kB
  • sloc: python: 28,451; ansic: 16,507; sh: 10,586; cpp: 8,494; javascript: 1,474; makefile: 822; awk: 12
file content (13 lines) | stat: -rw-r--r-- 257 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np
import pytest
from exercise_2.holding_onto_memory import process_data


@pytest.mark.limit_memory("230 MB")
def test_holding_in_memory():
    process_data()


def test_result():
    result = process_data()
    assert np.all(result == 18)