Skip to content

Commit

Permalink
Fixed issue dabeaz#23. Filter out deprecation warnings in unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeaz committed May 29, 2013
1 parent a868c07 commit 7aa4bdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Version 3.5
---------------------
05/29/13: beazley
Added filter to make unit tests pass under 'python -3'.
Reported by Neil Muller.

05/29/13: beazley
Fixed CPP_INTEGER regex in ply/cpp.py (Issue 21).
Reported by @vbraun.
Expand Down
3 changes: 2 additions & 1 deletion test/testyacc.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def setUp(self):
pass

if sys.hexversion >= 0x3020000:
warnings.filterwarnings('ignore',category=ResourceWarning)
warnings.filterwarnings('ignore', category=ResourceWarning)
warnings.filterwarnings('ignore', category=DeprecationWarning)

def tearDown(self):
sys.stderr = sys.__stderr__
Expand Down

0 comments on commit 7aa4bdc

Please sign in to comment.