Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on windows #56

Closed
mcg1969 opened this issue Jul 18, 2018 · 0 comments · Fixed by #58
Closed

Tests fail on windows #56

mcg1969 opened this issue Jul 18, 2018 · 0 comments · Fixed by #58

Comments

@mcg1969
Copy link

mcg1969 commented Jul 18, 2018

I'm getting messages like this when running the test script on Windows:

(kxtest) C:\Users\mcg\Desktop\embedPy\tt>q test.q
KDB+ 3.6 2018.05.16 Copyright (C) 1993-2018 Kx Systems
w64/ 1()core 6143MB mcg desktop-cb8h04d 172.16.247.170 EXPIRE 2019.05.15 mgrant@anaconda.com KOD #5000002


(kxtest) C:\Users\mcg\Desktop\embedPy\tt>ERROR:
 test:
  import resource
 message:
  e: No module named 'resource'
    [13] C:\Users\mcg\Miniconda3\envs\kxtest\q\p.q:11: .p.e:{$["def"~3#x;$[x[3]in"<*>";ei 3;eo];"class"~5#x;$[x[5]in"*>";ei 5;eo];eo]x}
                                                             ^
 file:
  tests/memory.t

ERROR:
 test:
  initmem:pmem[];
 message:
  eval: name 'resource' is not defined
    [10] .t.pmem:{$[.z.o~`m64;0;$[R;.p.qeval"resource.getrusage(resource.RUSAGE_SELF).ru_maxrss";0]]}

Clearly this is because resource is unix-specific. Its use will need to be bypassed on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant