summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2013-05-29 15:54:21 -0500
committerDavid Beazley <dave@dabeaz.com>2013-05-29 15:54:21 -0500
commit7aa4bdce869c166ac6f1cff6430c3eeb14b7ec49 (patch)
tree4252500d6b8d5d10f1b74a0927b7bb4276840708
parenta868c076376eeb7a2e7ede16feffeb0fa35d8acd (diff)
downloadply-7aa4bdce869c166ac6f1cff6430c3eeb14b7ec49.tar.gz
Fixed issue #23. Filter out deprecation warnings in unit tests.
-rw-r--r--CHANGES4
-rw-r--r--test/testyacc.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0676239..e5d79c5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
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.
diff --git a/test/testyacc.py b/test/testyacc.py
index aa87779..27d0f92 100644
--- a/test/testyacc.py
+++ b/test/testyacc.py
@@ -94,7 +94,8 @@ class YaccErrorWarningTests(unittest.TestCase):
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__