GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge pull request #972 from bnavigator/config-test-fix · python-control/python-control@af4f8a7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • control/tests
    • config_test.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎control/tests/config_test.py‎

Copy file name to clipboardExpand all lines: control/tests/config_test.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def test_default_deprecation(self):
5151
ct.config.defaults['deprecated.config.oldmiss'] = 'config.newmiss'
5252

5353
msgpattern = r'config\.oldkey.* has been renamed to .*config\.newkey'
54+
msgmisspattern = r'config\.oldmiss.* has been renamed to .*config\.newmiss'
5455

5556
ct.config.defaults['config.newkey'] = 1
5657
with pytest.warns(FutureWarning, match=msgpattern):
@@ -77,7 +78,7 @@ def test_default_deprecation(self):
7778
assert ct.config.defaults.get('config.oldkey') == 6
7879

7980
with pytest.raises(KeyError):
80-
with pytest.warns(FutureWarning, match=msgpattern):
81+
with pytest.warns(FutureWarning, match=msgmisspattern):
8182
ct.config.defaults['config.oldmiss']
8283
with pytest.raises(KeyError):
8384
ct.config.defaults['config.neverdefined']

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.