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

运行text_test.py出现错误 #9

Open
lorylee opened this issue Apr 2, 2019 · 9 comments
Open

运行text_test.py出现错误 #9

lorylee opened this issue Apr 2, 2019 · 9 comments

Comments

@lorylee
Copy link

lorylee commented Apr 2, 2019

============================= test session starts =============================
platform win32 -- Python 3.6.2, pytest-4.4.0, py-1.8.0, pluggy-0.9.0
rootdir: D:\lc_bs\text-cnn-mastercollected 1 item

text_test.py FLoading test data...

text_test.py:38 (test)
def test():
print("Loading test data...")
t1=time.time()

  x_test,y_test=process_file(config.test_filename,word_to_id,cat_to_id,config.seq_length)

E NameError: name 'config' is not defined

text_test.py:42: NameError
[100%]

@lorylee
Copy link
Author

lorylee commented Apr 2, 2019

我对pytest不是很明白,一运行这个脚本就报错,求解答,谢谢

@aiyanyong
Copy link

解决了吗?我也是这个问题,很奇怪。

@Misakiwu
Copy link

Misakiwu commented May 5, 2019

============================= test session starts =============================
platform win32 -- Python 3.6.2, pytest-4.4.0, py-1.8.0, pluggy-0.9.0
rootdir: D:\lc_bs\text-cnn-mastercollected 1 item

text_test.py FLoading test data...

text_test.py:38 (test)
def test():
print("Loading test data...")
t1=time.time()

  x_test,y_test=process_file(config.test_filename,word_to_id,cat_to_id,config.seq_length)

E NameError: name 'config' is not defined

text_test.py:42: NameError
[100%]

解决了吗请问

@aiyanyong
Copy link

aiyanyong commented May 5, 2019 via email

@Misakiwu
Copy link

Misakiwu commented May 5, 2019

解决了 | | 艾延勇 邮箱:aiyanyong@126.com | 签名由 网易邮箱大师 定制 在2019年05月05日 23:54,Misakiwu 写道: ============================= test session starts ============================= platform win32 -- Python 3.6.2, pytest-4.4.0, py-1.8.0, pluggy-0.9.0 rootdir: D:\lc_bs\text-cnn-mastercollected 1 item text_test.py FLoading test data... text_test.py:38 (test) def test(): print("Loading test data...") t1=time.time() x_test,y_test=process_file(config.test_filename,word_to_id,cat_to_id,config.seq_length) E NameError: name 'config' is not defined text_test.py:42: NameError [100%] 解决了吗请问 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

可以问一下是怎么解决的吗,麻烦了

@aiyanyong
Copy link

aiyanyong commented May 5, 2019 via email

@Misakiwu
Copy link

Misakiwu commented May 5, 2019 via email

@aiyanyong
Copy link

aiyanyong commented May 5, 2019 via email

@Misakiwu
Copy link

Misakiwu commented May 5, 2019 via email

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

No branches or pull requests

3 participants