File: test_import.py

package info (click to toggle)
python-cymem 2.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 136 kB
  • sloc: python: 122; sh: 11; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# This is a very weak test, but testing Cython code can be hard. So, at least check
# we can create the object...

from cymem.cymem import Pool, Address


def test_pool():
    mem = Pool()
    assert mem.size == 0

def test_address():
    address = Address(1, 2)