Skip to content

Commit

Permalink
fix resource for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaos committed Jul 2, 2019
1 parent 9c06c6e commit c3d2805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions QUANTAXIS/QAUtil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@

import platform
from functools import wraps
platform_flag = platform.system() == 'Linux'
platform_flag = platform.system() == 'Windows'

if platform_flag:
if not platform_flag:
from resource import getrusage as resource_usage, RUSAGE_SELF
from time import time as timestamp

Expand Down
6 changes: 3 additions & 3 deletions QUANTAXIS_Test/QAFetch_Test/QATdx_Test_multi_process_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ def _test_QA_SU_save_index_or_etf_day(self, codelist, index__or_etf='index', par
len(data2), len(data1)))
print('保存前日期: {}, 保存后日期 {}'.format(data1.datetime[-1],
data2.datetime[-1]))
import inspect
source=inspect.getsource(QA_SU_save_index_day)
print(source)
# import inspect
# source=inspect.getsource(QA_SU_save_index_day)
# print(source)

def test_QA_SU_save_index_day_with_delete(self):
# 删除部分数据
Expand Down

0 comments on commit c3d2805

Please sign in to comment.