Commit dd2fef5
Fix test_pickletools and test_pickle on GitHub CI.
Summary:
In the test for _imp.create_builtin, restore the module's attributes after
recreating the builtins, since otherwise we're left without __loader__ and
__package__ and other attributes set by importlib, which breaks
test_pickletools and test_pickle if they're run in the same process.
Reviewed By: itamaro
Differential Revision: D114275932
fbshipit-source-id: 7f3ef4b514f47f200a28dd4553a13d63a5a7f6161 parent c13cda6 commit dd2fef5
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1266 | 1271 | | |
1267 | 1272 | | |
1268 | 1273 | | |
1269 | 1274 | | |
| 1275 | + | |
1270 | 1276 | | |
1271 | 1277 | | |
1272 | 1278 | | |
| |||
0 commit comments