Commit 46c025d
committed
gh-62824: Adjust test_alias_modules_exist test to allow .pyc codec files
In Fedora, we install many codecs as .pyc files to save space.
This test was failing when running from installed Python:
======================================================================
FAIL: test_alias_modules_exist (test.test_codecs.TransformCodecTest.test_alias_modules_exist)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.14/test/test_codecs.py", line 3115, in test_alias_modules_exist
self.assertTrue(os.path.isfile(codec_file),
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
"Codec file not found: " + codec_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: False is not true : Codec file not found: /usr/lib64/python3.14/encodings/cp037.py
----------------------------------------------------------------------1 parent 9bf03c6 commit 46c025d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3112 | 3112 | | |
3113 | 3113 | | |
3114 | 3114 | | |
3115 | | - | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
3116 | 3118 | | |
3117 | 3119 | | |
3118 | 3120 | | |
| |||
0 commit comments