Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit 8c6b369

Browse files
author
misakwa
committed
Clear cache before testing slots
1 parent b490393 commit 8c6b369

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import pytest
44
from thriftpy.thrift import TType
55
from thriftpy.parser import load, load_fp
6+
from thriftpy.parser.parser import thrift_cache
67
from thriftpy.parser.exc import ThriftParserError, ThriftGrammerError
78

89

@@ -263,6 +264,7 @@ def test_issue_215():
263264

264265

265266
def test_load_slots():
267+
thrift_cache.clear()
266268
thrift = load('addressbook.thrift', use_slots=True)
267269

268270
# normal structs will have slots

0 commit comments

Comments
 (0)